0

I am learning to program in Python, is there a way that I can execute the program.py so that it shows the results in the terminal window?

for example this is the code I have

temp = 6
freezing = 0
raining = False
hail = True
if hail == raining or (temp < freezing):
    print("Bad weather!")

if temp > freezing: 
    print("Not freezing")

k=input("press close to exit")

when I execute the command from cmdr (a terminal emulator) it opens a cmd window with the program, is there a way to have the output appear in the cmdr window?

1

1 Answer 1

0

Nevermind, figured out to type python3 program.py

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.