Advertisement
ABIX_Edukacja

Funkcje_pn

Nov 18th, 2020
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. def funkcja_1():
  2.     print("Hej - jestem Python")
  3.     imie = input("Podaj swoje imię: ")
  4.     print(f"Hej {imie}, miło mi cię poznać.")
  5.    
  6. def funkcja_2():
  7.     print("Hej - jestem Python")
  8.     imie = input("Podaj swoje imię: ")
  9.     return f"Hej {imie}, miło mi cię poznać."
  10.  
  11. def funkcja_3(ja):
  12.     """Jak mam się zgłosić?"""
  13.     print(f"Hej - jestem {ja}")
  14.     imie = input("Podaj swoje imię: ")
  15.     return f"Hej {imie}, miło mi cię poznać."
  16.  
  17. def funkcja_4(podstawa, wysokosc):
  18.     """Liczymy pole trójkąta - podaj wart. float"""
  19.     pole = (podstawa * wysokosc) / 2
  20.     print(f"Pole wynosi {pole}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement