Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Printing the type of a variable in Mojo - Modular
M
Modular
•
3y ago
•
2 replies
roopesh puthalath
Printing the type of a variable in Mojo
is there a way to print the variable type in mojo
?
var state
= open
_file
_explorer
(
)
print
(type
(state
)
)
Modular
Join
This server is the home of the MAX and Mojo community! Join us to chat about all things Modular.
20,199
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Is there a way in Mojo to know the type of a variable/object ?
M
Modular / questions
15mo ago
Check type of a variable
M
Modular / questions
2y ago
How to Create a Multi-Type List in Mojo?
M
Modular / questions
2y ago
List of references in Mojo
M
Modular / questions
2y ago