Python run with command prompt

7 Views
Published
python run a .py file with cmd /terminal

#python #cmd #terminal #run

# *****************************
# run .py file with cmd
# *****************************
# save file as .py (Python file)
# go to command prompt
# navigate to directory w/ your file: cd C:\Users\BroCode\Desktop
# invoke python interpreter + script: python hello_world.py

print("Hello World!")

name = input("What's your name?: ")

print("Hello "+name)
# *****************************

Bro Code merch store
Category
Bro Code
Tags
python, Python, python cmd
Be the first to comment