If you want to print something = '@'
2 times in a line, you can write this:
print(something * 2)
If you want to print 4 lines of something, you can use a for loop:
for i in range(4):
print(something)
More Related Contents:
- Python read from txt and save into mysql
- Apply function to each element of a list
- Reading file using relative path in python project
- In python, how to import filename starts with a number
- How to filter rows in pandas by regex
- Export a Pandas dataframe as a table image
- Saving to hdf5 is very slow (Python freezing)
- How to delete specific strings from a file?
- Convert HTML entities to Unicode and vice versa
- Keras replacing input layer
- pygame sprite wall collision [duplicate]
- Decorating Hex function to pad zeros
- Pandas – Creating Difference Matrix from Data Frame
- Pretty graphs and charts in Python [closed]
- How do you see the entire command history in interactive Python?
- Difference between methods and attributes in python
- Using Python and Mechanize to submit form data and authenticate
- tkinter PhotoImage doesn’t exist?
- LogisticRegression: Unknown label type: ‘continuous’ using sklearn in python
- How do I clear all variables in the middle of a Python script?
- Bipartite graph in NetworkX
- Custom Sorting Python Dictionary
- What is print(f”…”)
- Recursive generator for flattening nested lists
- Add single element to array in numpy
- Matplotlib transparent line plots
- How to parse packets in a python library? [closed]
- Python pandas rolling_apply two column input into function
- Python: type-hinting a classmethod that returns an instance of the class, for a class that is inherited
- list comprehension with multiple conditions (python)