Advertisement
JkSoftware

Day 2 - Type Check and Conversion

Nov 4th, 2021
1,049
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. num_char = len(input(
  2.     "What is your name?"
  3. ))
  4. print(type(num_char))
  5. num_char = str(num_char)
  6. print(type(num_char))
  7.  
  8. a = 123
  9. print(type(a))
  10. a = str(123)
  11. print(type(a))
  12. a = float(123)
  13. print(type(a))
  14. print(70 + float("100.5"))
  15. print(str(70) + str(100))
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement