fork download
  1. # your code goes here
  2. #0JLQsNGB0LjQu9C10L3QutC+INCQ0YDRgtC10Lwg
  3. #просте завдання 1_9
  4. def colorr(count):
  5. namet = input(f"(count = {count})Write name: \n")
  6.  
  7. c = int(count)
  8.  
  9. if c ==1:
  10. print(f"\033[34m привітання {namet} \033[0m")
  11. elif c ==2:
  12. print(f"\033[35m запрошення для {namet}\033[0m")
  13. else:
  14. print("Wrong count")
  15.  
  16.  
  17. colorr(1)
  18. colorr(2)
  19. colorr(3)
Success #stdin #stdout 0.13s 14096KB
stdin
Artem
Artem
Artem
stdout
(count = 1)Write name: 
 привітання Artem 
(count = 2)Write name: 
 запрошення для Artem
(count = 3)Write name: 
Wrong count