Problem description
The function type isn’t working
Expected behavior
The function should give me the type of the data
Actual behavior
There is no output in the console from the function
Steps to reproduce
Just type the function in the main.py and you will see
Browser
Chrome
OS
No
Device if mobile
Android
Plan
Free
Hi @ahmed0alwaeir , welcome to the forums!
You need to print the type:
type('hello') # Won't print anything
print(type('hello')) # Will print <class 'str'>
You need to print it to the console to display it, if not, nothing will show as type()
doesn’t print the type.
5 Likes
I forget to type print, thanks for reminder Nate.
2 Likes
system
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.