Python 2.x:
print '-' * 3
Python 3.x:
print('-' * 3)
Related Contents:
- How do you test that a Python function throws an exception?
- How do I import other Python files?
- How to download image using requests
- Convert JSON string to dict using Python [duplicate]
- Using Python’s os.path, how do I go up one directory?
- Using both Python 2.x and Python 3.x in IPython Notebook
- error: command ‘gcc’ failed with exit status 1 while installing eventlet
- How to do a less than or equal to filter in Django queryset?
- Web scraping with Python [closed]
- OpenCV – Depth map from Uncalibrated Stereo System
- Find an element in a list of tuples
- Python – doctest vs. unittest [closed]
- cv2.imshow command doesn’t work properly in opencv-python
- How to plot normal distribution
- Concatenating string and integer in Python
- Practicing BDD with python [closed]
- python pandas dataframe, is it pass-by-value or pass-by-reference
- Is there a need for range(len(a))?
- scikit-learn .predict() default threshold
- Is enumerate in python lazy?
- Subtracting 2 lists in Python
- python-pandas and databases like mysql
- Pandas to_html() truncates string contents
- Check for duplicate values in Pandas dataframe column
- Use a.any() or a.all()
- How to indent Python list-comprehensions?
- Calculating difference between two rows in Python / Pandas
- Setting a fixed size for points in legend
- Is there a formatted byte string literal in Python 3.6+?
- Merge several Python dictionaries [duplicate]
- Iterate over individual bytes in Python 3
- list memory usage in ipython and jupyter
- How to pad a string to a fixed length with spaces [duplicate]
- TypeError: ‘list’ object is not callable while trying to access a list
- How to access sparse matrix elements?
- Is there a GUI design app for the Tkinter / grid geometry? [closed]
- Negative integer division surprising result
- Is there a way to remove unused imports for Python in VS Code?
- Sort by multiple keys using different orderings [duplicate]
- Releasing memory of huge numpy array in IPython
- Difference between np.int, np.int_, int, and np.int_t in cython?
- django.core.exceptions.AppRegistryNotReady: Apps aren’t loaded yet. (django 2.0.1)(Python 3.6)
- Split string on commas but ignore commas within double-quotes?
- Find and draw the largest contour in opencv on a specific color (Python)
- What is the use of Python’s basic optimizations mode? (python -O)
- Why does python `any` return a bool instead of the value?
- Is there anything faster than dict()?
- Reading the target of a .lnk file in Python?
- How to make a Tkinter window not resizable?
- Why does ‘() is ()’ return True when ‘[] is []’ and ‘{} is {}’ return False?