aku
1
Hi
I’m stuck in one of the last question of Introduction to pyton 3
I can’t find out answer for “The type of foo from question 1 is <class ‘set’>. What is the type of x_coordinate?"
t
The code is:
x_coordinate = (42,)
Could anyone give me a hint
Thanks
Hilbert
2
Haven’t done it, so I dunno what the actual answer is, but if you want to get the type of something you use type(), so it would be
>>> x_coordinate = (42,)
>>> type(x_coordinate)
<class 'tuple'>
2 Likes
what you say is correct, but not for HTB