0
How to create an out put like this "1", "2", " 3" and so on? using a python
11 Respostas
0
Here:
for i in range(10):
print("\""+str(i)+"\"")
0
#this code will give you what you want from 0 to 9
for i in range (10):
print str(i)
0
an error occured sir
0
whats the error?
0
syntax error
0
syntax error
0
i think str is the systax error
0
that means there is a problem with the way you wrote your code, make sure you indent the line after for and dont forget the : at the end of the for loop. the code logic is ok though
0
Is this what you mean?
print("1,2,3,4,5".split(","))
0
Mo Hani no,
I mean a program that will show this kind of out put.
"1" "2" "3" and so on.
0
thanks a lot <3