Advertisement
ABIX_Edukacja

L:Enter_00

Apr 24th, 2020
599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. # różne typy zmiennych
  2. imie = "adam"
  3. nazwisko = "jurkiewicz"
  4. rok_urodzenia = 1974
  5. wiek = 2020 - rok_urodzenia
  6. full_name = imie.capitalize() + " " + nazwisko.capitalize()
  7. print(f"Osoba {full_name}, urodzona w roku {rok_urodzenia}, ma dzisiaj {wiek} lat.")
  8. print("=====[ Typy danych ]==========")
  9. print(type(wiek))
  10. print(type(full_name))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement