Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def convert_int():
- while True:
- string=input('enter yes or no: ')
- if string=='yes':
- num=float(input('Enter the float value: '))
- print(int(num))
- else:
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement