Advertisement
timber101

KR01-GettingStarted

Feb 12th, 2022
981
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. #  KR - getting started
  2.  
  3. """
  4. your words here
  5. """
  6.  
  7. #  4 data types
  8.  
  9. # strings - characters
  10.  
  11. # integers - whole numbers eg 3   88  999999
  12.  
  13. # floats - real numbers, decimal 5.23   99.457
  14.  
  15. # boolean - True or False - 1/ 0 yes/ no
  16.  
  17. a_string = "Howdy's doody"
  18. print(a_string)
  19.  
  20. an_integer = 3
  21. print(an_integer)
  22.  
  23. a_float = 5.343
  24. print(a_float)
  25.  
  26. a_boolean = True
  27. print(a_boolean)
  28.  
  29. print(type(an_integer))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement