Why does my python for loop colon get a syntax error?
a=int(input("Enter a number.")
for x in range(a):
print(" ")
c=int(input("Enter another number.")
for x in range(c):
print("x")
This issue is only a missing parenthesis on the input line:
a=int(input("Enter a number.") and c=int(input("Enter another number.")
a=int(input("Enter a number."))
for x in range(a):
print(" ")
c=int(input("Enter another number."))
for x in range(c):
print("x")
xrange and raw_input.
intfunction calls...