Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- try:
- wysokosc =int(input ('Podaj wysokość trójkąta: '))
- break
- except ValueError:
- print('Proszę o podanie liczby naturalnej')
- for i in range(1,int(wysokosc)+1):
- print('*' *i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement