fork download
  1. # Typy zmiennych
  2.  
  3. a=45 # integer int
  4. b=23.5 # float
  5. c= "Katarzyna" # string str
  6. d= True # bool
  7. e= False # bool
  8.  
  9. print (a)
  10. print (b)
  11. print (c)
  12. print (d)
  13. print (e)
  14.  
  15. print ()
  16.  
  17. print(type(a))
  18. print(type(b))
  19. print(type(c))
  20. print(type(d))
  21. print(type(e))
Success #stdin #stdout 0.04s 9640KB
stdin
Standard input is empty
stdout
45
23.5
Katarzyna
True
False

<class 'int'>
<class 'float'>
<class 'str'>
<class 'bool'>
<class 'bool'>