Python: Finding Out Data type

Post Reply
User avatar
Jason
Site Admin
Posts: 919
Joined: Sun Dec 21, 2025 8:56 pm

Code: Select all

name = str("Jo")




 

POSTREACT(ions) SUMMARY

User avatar
Stoic
Posts: 71
Joined: Wed Jul 22, 2026 6:35 am

Aren't you going to use function type? Like putting a variable inside the function and have the type returned like so:

Code: Select all

print(type(variable_name))
 

POSTREACT(ions) SUMMARY

Worker (1)
Jason
1
Worker
User avatar
Jason
Site Admin
Posts: 919
Joined: Sun Dec 21, 2025 8:56 pm

Stoic wrote: Thu Jul 23, 2026 6:31 am Aren't you going to use function type? Like putting a variable inside the function and have the type returned like so:

Code: Select all

print(type(variable_name))
Yeah, that's a related idea.
 

POSTREACT(ions) SUMMARY

Post Reply