Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #EOF ERROR
- # I'm learning python through university of michigan's python course in coursera.
- # RUNESTONE is used for teaching purpose
- #I'm using pydroid3 in my android for practice.
- #When I run the below program in Runestone it works fine but pydroid gjves an EOF error.
- #On removing the input command I don't get any such error
- import turtle
- color = input("Enter background color:")
- colour= input('Enter turtle colour:')
- wn = turtle.Screen()
- wn.bgcolor(color)
- alex = turtle.Turtle()
- alex.color(colour)
- alex.pensize(10)
- alex.shape('turtle')
- alex.up
- distance=5
- for i in range(30):
- alex.stamp(30)
- alex.left(30)
- alex.forward(distance)
- distance+= 2
- wn.exitonclick()
- #Error message:
- #Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/temp_iiec_codefile.py", line 12, in <module> color = input("Enter background color:") EOFError: EOF when reading a file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement