Python Forum
The difference between two functions
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'>
>>>
Reply


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

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020