Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to Python
#3
This part says I can't just test for type integer though?

This means that, for this lesson, you can't just test the input to see if it's of type int.

if I could use int I could do:
def is_int(x):
  if x == type<int>:
    return True
  else:
    return False
Reply


Messages In This Thread
New to Python - by Buffy - Feb-22-2018, 08:37 PM
RE: New to Python - by buran - Feb-22-2018, 08:40 PM
RE: New to Python - by Buffy - Feb-22-2018, 08:45 PM
RE: New to Python - by glidecode - Feb-22-2018, 08:51 PM
RE: New to Python - by buran - Feb-22-2018, 08:55 PM

Forum Jump:

User Panel Messages

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