Python 2.x:
print '-' * 3
Python 3.x:
print('-' * 3)
More Related Contents:
- Why do I get “‘str’ object has no attribute ‘read'” when trying to use `json.load` on a string? [duplicate]
- How do you divide each element in a list by an int?
- Re-raise exception with a different type and message, preserving existing information
- Convert pandas DataFrame into list of lists [duplicate]
- What is the difference between static files and media files in Django?
- How do I convert an array (i.e. list) column to Vector
- lower() vs. casefold() in string matching and converting to lowercase
- tag generation from a text content
- How to find instance of a bound method in Python?
- Python: Elegant and efficient ways to mask a list
- Building Python 3.7.1 – SSL module failed
- Efficient dot products of large memory-mapped arrays
- How to replace an instance in __init__() with a different object?
- Limit Python VM memory
- How to redirect from a view to another view In Django
- Deleting User Messages in Discord.py
- Installing lxml for Python 3.4 on Windows x 86 (32 bit) with Visual Studio C++ 2010 Express
- How to use sphinx automodule and exposed functions in __init__
- Python Lambdas and Variable Bindings [duplicate]
- Python: type-hinting a classmethod that returns an instance of the class, for a class that is inherited
- Multiple try codes in one block
- How can I profile a multithread program in Python?
- Opening a process with Popen and getting the PID
- What is the type hint for a (any) python module?
- 2D grid data visualization in Python
- Handling Timeouts with asyncio
- How to return and download Excel file using FastAPI?
- list comprehension with multiple conditions (python)
- How to convert only numbers in a mixed list into float
- SQLAlchemy ordering by count on a many to many relationship