Advertisement
Guest User

EOF ERROR.py

a guest
Oct 25th, 2020
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.87 KB | None | 0 0
  1.  #EOF ERROR
  2.  
  3.  
  4. # I'm learning python through university of michigan's python course in coursera.
  5. # RUNESTONE is used for teaching purpose
  6. #I'm using pydroid3 in my android for practice.
  7. #When I run the below program in Runestone it works fine but pydroid gjves an EOF error.
  8. #On removing the input command I don't get any such error
  9.  
  10.  
  11. import turtle
  12. color = input("Enter background color:")
  13. colour= input('Enter turtle colour:')
  14.  
  15. wn = turtle.Screen()
  16. wn.bgcolor(color)
  17.  
  18. alex = turtle.Turtle()
  19. alex.color(colour)
  20. alex.pensize(10)
  21. alex.shape('turtle')
  22. alex.up
  23.  
  24. distance=5
  25. for i in range(30):
  26.     alex.stamp(30)
  27.     alex.left(30)
  28.     alex.forward(distance)
  29.     distance+= 2
  30.    
  31.    
  32. wn.exitonclick()
  33.  
  34. #Error message:
  35.     #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