Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. def convert_int():
  2. while True:
  3.  
  4. string=input('enter yes or no: ')
  5. if string=='yes':
  6. num=float(input('Enter the float value: '))
  7. print(int(num))
  8. else:
  9. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement