Python run with command prompt 👨‍💻

Published: 01 February 2021
on channel: Bro Code
13,045
326

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 👟 :
===========================================================
https://teespring.com/stores/bro-code-5
===========================================================