How to Run Python Code From the Command-Line

preview_player
Показать описание
You'll learn how to write and execute code from the command-line. You’ll see how to create, edit, save, and execute a script on Windows, Ubuntu, and macOS.

Рекомендации по теме
Комментарии
Автор

THANK YOU. I have been trying to figure out how to do this for days while watching multiple videos and they never explained it as simple as you. 👍🏽

kjblessing
Автор

I was stuck on a lab assignment for 2 days now - I was missing the nano bit - THANK YOU!!

danpeoples
Автор

Thank you! So many of the videos I've watched will completely skip over the basics and throw you into a complex IDE environment, which then gets me completely baffled. I appreciate this video gets you started on the command line, and better helped me to understand the PATH.

OptionGal
Автор

brilliant, best one to explain and illustrate the cd and ls functions on so many operating systems, thanks alot

AmrNaeem
Автор

STRAIGHT TO THE POINT. FANTASTIC - GOOD WORK

ayoubelfadil
Автор

When I Type In 'python hello.py ' It Says That instruction is not recognized as an internal or external command.

claytonbigsbyyy
Автор

if idle cmd is not working, u can open notepad and write the shown prg and save it as hello.py in the created directory and the run in cmd window using the same given python hello.py, u will get the excuted answer. hope this helps fellows.

sayyadazainab
Автор

Nice, worked well for iOS. Easy and clear explanation.

baharsh
Автор

Hi, what do you do when your python script has a function that accepts an input, say fpath. How do you call the script from commandline with that input?

jamienash
Автор

(Windows) instead of executing the file...
python hello.py

...actually opens the file. Help.

samsmusichub
Автор

Creating the empty file is optional at first, am I right? Can I skip it and just print, 'nano hello.py'?

infoengineer
Автор

Mine reads the file but doesn't show any output! Does anybody know why is that?

leonardobernaschina
Автор

"idle is not recognized as an internal or external command" on Windows 10.

shiyidu
Автор

Why Idle hello.py not working in my pc

theraushantiwari