Python Forum
type command does not work appropriately
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
type command does not work appropriately
#1
when I assign a variable as given below type command works
for example :-
a = 2
type(a)
but when I assign a variable as given below and save it as .py file and run it does not what it should.
a = 2
b = 3.0
c = "string"
type(a)
type(b)
type(c)
please help me understand what is the reason behind this?
Reply


Messages In This Thread
type command does not work appropriately - by atharva - May-30-2018, 11:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  tmdbsimple content type? How to work with it? pythonnewbie138 1 1,444 Aug-01-2020, 08:18 PM
Last Post: bowlofred
  Type hinting - return type based on parameter micseydel 2 2,510 Jan-14-2020, 01:20 AM
Last Post: micseydel
  Python: command “python -m pip install --upgrade pip” doesn't work apollo 2 13,336 Sep-16-2019, 03:11 PM
Last Post: snippsat
  Type function does not work sunnyarora 2 2,496 Mar-15-2019, 10:50 AM
Last Post: sunnyarora
  speech_to_text command doesn't seem to work snakebyte 10 6,973 Sep-18-2017, 09:15 PM
Last Post: snakebyte

Forum Jump:

User Panel Messages

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