Skip to content
Sign upLog in
← Back to Community
on replit environment print command doesn't show the output
Profile icon
PoojaVashist786

image

my first print program

Below the code I wrote :

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

Comments
hotnewtop
Profile icon
PoojaVashist786

Yes, now it's working, and one more thing I need to ask that every time we need to do the exercise with the same file we can not create our own practice file or folder in replit.

Profile icon
Bookie0

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