Advertisement
msoo248

Untitled

Jul 12th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. while True:
  2.     try:
  3.       wysokosc =int(input ('Podaj wysokość trójkąta: '))
  4.       break
  5.     except ValueError:
  6.       print('Proszę o podanie liczby naturalnej')
  7.  
  8. for i in range(1,int(wysokosc)+1):
  9.   print('*' *i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement