Not printing to console

Problem description:
Python 3: Nothing is outputting to the console when I call functions in the console

Expected behavior:
Calling a function should return the functions output

Actual behavior:
Calling the function does nothing

Bug appears at this link:
https://replit.com/@CSPR23/The-Random-Library-Project#main.py

1 Like

@LaurenTan Prybar was removed from the default Python template. Instead, if you put python3 in front of any command in the console, it will work. For your case, run this in the console:

python3 flip()

Or, if you’d like to directly use it, check out this post:

1 Like

That shouldn’t work, since that’s not a builtin function.

2 Likes

I tried that, but I am getting the following error:
bash: syntax error near unexpected token `(’

1 Like

I tried that, but I am getting the following error:
bash: syntax error near unexpected token `(’

1 Like

Run python3 -i main.py in the console, or just use the prybar template.

5 Likes

OK, that worked thanks

2 Likes

Hi @LaurenTan !
Since @CoderElijah 's post solved your issue, could you mark that post as a Solution?

3 Likes

Just for completion’s sake, Replit Staff released a python+prybar template:

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.