pihta24

Электронный попугай

Feb 2nd, 2021
2,203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. a = []
  2.  
  3.  
  4. def parrot(phrase):
  5.     if phrase in a:
  6.         print(phrase)
  7.     else:
  8.         a.append(phrase)
Advertisement
Add Comment
Please, Sign In to add comment