Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. eye_color = input("Какой у Вас цвет глаз: ") # определяет цвет глаз.
  2. result_eye_color = print("Ваш цвет глаз: " + eye_color + "n")
  3.  
  4. f = open("test.txt", "w")
  5. f.write(result_eye_color))
  6. f.close()
  7.  
  8. eye_color = input("Какой у Вас цвет глаз: ") # определяет цвет глаз.
  9. result_eye_color = print("Ваш цвет глаз: " + eye_color + "n")
  10.  
  11. f = open("test.txt", "w")
  12. f.write(str(result_eye_color)) # исправил так
  13. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement