Search
Star
1.4k
Feedback
Setup for Free
M
Modular
•
2y ago
Hasan Yousef
Printf - print format
Is there a print format in mojo
، how can I rewrite this python in mojo
:
def fun (arg): print(f'arg = {arg}') bar = [5, 10, 15, 20]
def fun (arg): print(f'arg = {arg}') bar = [5, 10, 15, 20]
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
def
fun
(arg):
print
(
f
'arg =
{
arg
}
'
)
bar
=
[
5
,
10
,
15
,
20
]
def
fun
(arg):
print
(
f
'arg =
{
arg
}
'
)
bar
=
[
5
,
10
,
15
,
20
]
No replies yet
Be the first to reply to this message
Join
Similar Threads
How do I print UInt8 in hex format?
M
Modular / questions
3y ago
print breaks code
M
Modular / questions
16mo ago
Adding repr implementation to print structs
M
Modular / questions
3y ago
Print statement stops working after array instantiation
M
Modular / questions
3y ago