How To Run Python In Command Prompt

How To Run Python In Command Prompt

Computer Science

3 года назад

356,519 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Fidel
Fidel - 19.09.2023 00:23

Thank you so much

Ответить
Shocktreatmint Films
Shocktreatmint Films - 08.04.2023 11:38

Does not work

Ответить
Pranjal Sinha
Pranjal Sinha - 13.02.2023 18:46

thanks :D!!!

Ответить
afor odoma
afor odoma - 03.02.2023 14:28

Thank you so much for this

Ответить
Woo Luke
Woo Luke - 22.01.2023 14:29

No ones prob gonna answer this because this is ages later, but when I save the text as a python file (.py) the notification doesn't come up and just stays as a text file. Is there a way for me to change the file manually?

Ответить
Souvik Paul
Souvik Paul - 15.01.2023 13:16

If
Print

Ответить
Souvik Paul
Souvik Paul - 15.01.2023 13:10

Number -->

Ответить
Marroza
Marroza - 05.01.2023 19:56

Great video! I would recommend higher volume next time though

Ответить
ZX DASH
ZX DASH - 01.11.2022 03:36

Go to Python and Choose the Stable version for ur windows then install it And Try to run in cmd if its not working go in system edit and Variuel Edit then go on path Paste Python27 Then its done refresh the cmd and Enjoy

Ответить
DannyRothko
DannyRothko - 27.09.2022 04:14

I just installed python, but my version is 2.7 how do I update it?

Ответить
Pantopoleio Navarinou
Pantopoleio Navarinou - 13.09.2022 19:49

I test it out and I see you are correct good job making this video you helped me a lot! But we can skip step 1 we can just write C:\Users\(User_Name)\Desktop\(app_name)

Ответить
Mar Ker
Mar Ker - 10.09.2022 18:51

My file doesn't want to change the extension .txt to .py It becomes hello.py.txt What the problem could be?

Ответить
masrur alam
masrur alam - 01.09.2022 10:56

@Computer Science: After writing multiple line of code like for loop what to press to run the code.

Ответить
Ed
Ed - 09.08.2022 07:57

I was copying and pasting the whole code to my terminal (facepalm)
thank you, this will save me a lot of time

Ответить
Shubham Haldar
Shubham Haldar - 01.07.2022 09:17

We don't need to compile the program in python just like Java in 'javac' ?

Ответить
sanket hajare
sanket hajare - 22.06.2022 00:53

I am able to follow till Hello, World. C:/Users/Computer Science>C:\Python38-32 ( what is python 38-32 , in the beginning when I typed c:/Users/My desktop>python --version( hit enter) .. It came as Python 3.8.5 ( does that matter when u reach stage c:/Python38-32

Ответить
Bukola Adebayo
Bukola Adebayo - 03.06.2022 22:18

Thank you so much!! Your video was helpful.

Ответить
a aqzsse
a aqzsse - 27.05.2022 14:56

Thank you so much

Ответить
emre tasdemir
emre tasdemir - 18.04.2022 00:43

How can we do the same directly in cmd, if you add something more than a few lines you won't be able to run it. Like when can't run if commands, at least I can't, thanks for the help.

Ответить
J94
J94 - 08.04.2022 09:36

How do you set up environmemt variables?

Ответить
rayanne liu
rayanne liu - 13.02.2022 21:02

hi can you walk us through using batch files?

Ответить
V1510N
V1510N - 22.11.2021 23:33

dosent work on python 3.10 because its not 38-32, and where the hell does the 32 come from

Ответить
PEPE RONI
PEPE RONI - 07.11.2021 22:29

thank you!!

Ответить
Oppenheimer pucho
Oppenheimer pucho - 02.11.2021 04:13

thanks

Ответить
Oppenheimer pucho
Oppenheimer pucho - 02.11.2021 03:57

If you cannot do this, maybe it's the file name extension, i mean.. in the part of the video where you have to rename the text document, and you rename it and the warning alert doesn't appear, you have to change the file name extension properly.

Ответить
slowzsunny
slowzsunny - 14.10.2021 00:56

the py thing dont work for me

Ответить
Alexander Godfrey Kleinhans
Alexander Godfrey Kleinhans - 19.08.2021 18:39

Hey, man! Gave your vid a like. Thanks for the help. I really got stuck at that point.

Ответить
Adam
Adam - 02.08.2021 17:06

Nice video. Your method worked for me but if i run print("hello, world") from my terminal it opens another python terminal to run the script and closes instantly. Any idea?

Ответить
Nipun Shrivats
Nipun Shrivats - 08.07.2021 15:23

thanks that helped

Ответить
Austin Metzger
Austin Metzger - 02.07.2021 10:04

instead of doing python --version you just type "python" and it will give you the info of the version you have and if there is >>> at the end you know you did it right

Ответить
Hich
Hich - 28.06.2021 16:30

thank you bro

Ответить
zulfikar isiklar
zulfikar isiklar - 10.05.2021 02:40

Hello there. Could you show us how to open github repository? I have more than one python file and I'm getting confused I don't know which one and how to open it.

Ответить
Rj Karthikeyan
Rj Karthikeyan - 03.05.2021 08:32

Bro iam searching solution for last 2 days without sleep please hive me a solution.......after doing all process you said i get errorno2 no such file or directory...please give me the solution bro

Ответить
Suryanshu Saxena
Suryanshu Saxena - 30.04.2021 18:59

WHEN I WROTE python - - version and pressed enter then it is showing that this app can't run on your pc......find some another version ............how to solve this sir?

Ответить
Teacher Tatsu
Teacher Tatsu - 10.04.2021 19:32

Why doesn't mine work when i put "py"

Ответить
vitezkojo
vitezkojo - 14.03.2021 13:38

If RENAME Warning is not shown, you didn´r change file extension. Open File Explorer, click "View" and check "File name extensions" box (Windows 10). After that you will be able to rename your script properly.

Ответить
Google Account
Google Account - 06.03.2021 09:50

useless

Ответить
sir chipmunk
sir chipmunk - 12.02.2021 19:03

i have python installed but nothing shows when i type "python --version wtf"
also i some dang article told me to do "$ python bot(dot)py" in my shell but nothing is happening :I

Ответить
atakan
atakan - 26.12.2020 10:14

python not found in cmd

Ответить
ZOO!diot Gaming
ZOO!diot Gaming - 15.12.2020 02:55

How do you zoom in notepad?

Ответить
rj
rj - 10.10.2020 07:17

While we entered the py file in CMD it was not showing the result it opens the notepad file pls tell me the what is the problem

Ответить
Bek Brace
Bek Brace - 07.09.2020 22:43

Great work brother

Ответить