Search
Star
1.4k
Feedback
Setup for Free
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,311
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Similar Threads
Is there a way in Mojo to know the type of a variable/object ?
M
Modular / questions
14mo 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
16mo ago