0

Writing loops in files

I'm trying to print a loop in a text file, but I always got 'invalid syntax'. This is the basic loop: https://code.sololearn.com/c40olRaJSd2x/?ref=app

19th Apr 2017, 2:12 AM
Felipe Cardozo
Felipe Cardozo - avatar
1 Antwort
+ 1
Defining a function in python Syntax Example Calling a function- arguments https://www.tutorialspoint.com/python/python_functions.htm def main(): x=0 while x<100: print(x) x=x+1 main()
19th Apr 2017, 3:58 AM
Ivan Taylor Hawkins
Ivan Taylor Hawkins - avatar