![]() | A Python variable can hold different objects:
d = 3.2 # d holds a float d = 'txt' # d holds a string d = Button(frame, text='push') # instance of class Button |
![]() | In C, C++ and Fortran, a variable is declared of a specific type:
double d; d = 4.2; d = "some string"; /* illegal, compiler error */ |
![]() | This difference makes it quite complicated to call C, C++ or Fortran from Python |