Ask coding questions

← Back to all posts
on replit environment print command doesn't show the output
PoojaVashist786 (1)

print("Day 1 - Python Print Function")
print("The function is declared like this:")
print("print('what to print')")

Comments
hotnewtop
Bookie0 (5967)

you have to put that code in the main.py file, not the my first print program file. if you want to use other files, you could do for example my_first_print_program.py, then in main,py you do from my_first_print_program.py import * which imports everything from that file.

It should then execute the code in that file.

Is this what you want? Lemme know! :D

robowolf (435)

Yeah that's a bug that happens to me too. Try refreshing the repl, or copy/paste the code into a new one.