Free Code Zone
Sunday, 13 November 2016
How to print in Python without newline or space?
code:
row = int(raw_input("Enter a number :"))
for i in range (row):
print i,
Know how to run python code
Output:
$ python
print_pattern1.py
Enter a number :5
0 1 2 3 4
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment