Python Forum
I have a question from a YouTube video I saw:
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I have a question from a YouTube video I saw:
#1
At the 2:54 mark of this video below, the teacher suddenly goes from this while.py program to a Python 3.3.3 Shell,
which then prints out a loop that starts with "Hi! I am 1"
Can you tell me how he got from one step to the other? :)?





https://www.youtube.com/watch?v=xCaa4ig2lhU
Reply
#2
I'm assuming he used a keyboard shortcut (looks like it's F5 in IDLE) to run the code.
Reply
#3
he simply run the while.py. Because he is using IDLE - go to Run menu -> Run Module (if I remember correct) or simply press F5
Reply
#4
Big Grin 
I don't understand. I'm a little new to this. :)

He was using Python IDLE to run while.py?

When you say to use the RUN command, are you talking about
just going to the left bottom corner of my screen where the Windows icon is,
right clicking on that, and then clicking on RUN?

Or is this a RUN command that is located in a different area?

At the end of the video, I don't understand how he then got that endless loop to run. I could not even get it to appear.

He says he's going to run the program in the video, and suddenly
this appears:

Hi! I am 1
Hi! I am 2
Hi! I am 3
Hi! I am 4
Hi! I am 5
I couldn't get any of it to appear. How did he get it to appear? :)

He goes from

while.py - C:/Users/Madhur/Desktop/while.py

to

Python 3.3.3 Shell


and I can't see what happened in between those two steps.


Thanks

I don't see an edit button.
Reply
#5
At the top there is menu bar with File, Edit, Format, Run, etc.
Or simply press F5
Reply
#6
And when you press F5, what does that do? :)
Reply
#7
(Dec-27-2017, 07:08 PM)nelsonkane Wrote: And when you press F5, what does that do? :)

obviously RUN the while.py script
Reply
#8
Hitting F5 does not make this below appear for me:

Hi! I am 1
Hi! I am 2
Hi! I am 3
Hi! I am 4
Hi! I am 5

etc.
Reply
#9
You have to be running "IDLE" itself, not the command terminal. If you are using Windows, go to the "Start" menu, go to the Python folder and expand it, then click on the "IDLE" entry. You can also use "pythonwin" which is a little better (also located under the Python heading).

Since I don't use IDLE, I don't know how you access it on other OS's
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#10
Here i image i posted before.
When you open IDLE you are not in the right window,it opens in interactive shell.
[Image: Wn7asS.jpg]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to check if video has been deleted or removed in youtube using python Prince_Bhatia 14 11,579 Feb-21-2020, 04:33 AM
Last Post: jehoshua
  Youtube video transcripts jehoshua 2 3,772 Feb-15-2020, 09:55 PM
Last Post: jehoshua
  Video Metadata Question malonn 10 9,356 Jul-23-2018, 04:04 PM
Last Post: malonn

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020