Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 The difference between two functions
#2
division of two integers returns a float
>>> a = 6
>>> b = 3
>>> c = a/b
>>> print(f"type(a): {type(a)}, type(b): {type(b)}, type(c): {type(c)}")
type(a): <class 'int'>, type(b): <class 'int'>, type(c): <class 'float'>
>>>
Quote

Top Page

Messages In This Thread
RE: The difference between two functions - by Larz60+ - Dec-03-2019, 12:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)