Type()


#1

This is my code
1. # Print out the types of an integer, a float,
2. # and a string on separate lines below.
3.
4.
This is my error
Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: invalid syntax (python, line 4)

Help!


#2

@0610001009
you need to type in an integer, float(number with a decimal) and a string(a word). however, don't forget the 'speech marks' things because without that, python will not recognise what you have typed

print type(333)
print type(12.3)
print type('hi')


#3

Thanks it worked :grinning: