Why is ‘c’ not printing?:
a,b,c = [1,2,3]
print(f'{a}\n{b}\n{c}')
Why is ‘c’ not printing?:
a,b,c = [1,2,3]
print(f'{a}\n{b}\n{c}')
This code seems fine to me. When its run, the output should be:
1
2
3
If the problem still persists, please send the link to your repl so the community can help you further.
Thanks for the response. I expect it to print as you mentioned above and it doesn’t.
But when I use other interpreters they print
1
2
3
Could it be an issue with the replit editor?
If you send the link to your repl, it will be really helpful.
Also if you are getting any errors, please add them here too.
Try creating a new repl, the code you mentioned works fine for me.
Yeah, I tried that yesterday and it worked. Thanks,
it’s only not working on the main.py
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.