davegimo

Untitled

Feb 1st, 2021
803
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def f(s):
  2.     print("ciao " + str(s))
  3.  
  4.    
  5. def controllo(eta):
  6.     if eta >= 18:
  7.         print("ok puoi comprare")
  8.     else:
  9.         print("no")
  10.  
  11.  
  12. def controllo_lista(pippo):
  13.     for element in pippo:
  14.         print("chiamo controllo su " + str(element))
  15.         controllo(element)
  16.         print()
  17.  
  18. def controllo_lista2(pippo):
  19.     for i in range(len(pippo)):
  20.         print("chiamo controllo su " + str(pippo[i]))
  21.         controllo(pippo[i])
  22.         print()
  23.  
RAW Paste Data