Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. # Fonction qui retourne l'entier 4
  2. def get_four_number():
  3.     return 4
  4.  
  5. # Fonction qui retourne un tuple (chiffres 4 et 6)
  6. def get_tuple_four_and_six():
  7.     return (4, 6)
  8.  
  9. # Fonction qui retourne une chaƮne
  10. def get_string():
  11.     str = 'Hello World !'
  12.     return str
  13.  
  14. # Fonction qui retourne une liste de lettres
  15. def get_list_of_letters():
  16.     return ['a', 'b', 'c', 'd', 'e', 'f', 'g']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement