Let's Learn Python - Basics #7 of 8 - Files and User Input

preview_player
Показать описание
This week, I cover FILES AND USER INPUT: we use .py files, raw_input(), create a guessing game, import files, and use separate files.

Please leave me a comment or question below! Like and Subscribe to show your support! :D

DOWNLOAD PYTHON:
=========================================

Music by Juto: Link Coming Soon!

=========================================
--- SUPER TUTORIAL LIST!!! ---

PLAYLISTS

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

Just found out something that i thought i might share for other newbies like me. In Python 3.2, raw_input() has been renamed to just input(). i had some errors and found out why.

hiddentoyou
Автор

If the .py isn't changing the file extension for windows users go to organize, folder and search options, view and then uncheck 'hide file extensions'. Then rename the file extensions.

klkane
Автор

For Win 10 Users. Open Notepad. File, Save As, "test.pyw", Close the program. The file will be there, right click, Edit with Idle.

duranmark
Автор

For those who cant change the file extension to .py (Windows 7):

1. Click on the folder your file is stored in.
2. Click the drop down arrow beside organize in the left corner.
3. Click folder and search options
4. Click the view tab.
5. Make sure "Hide extensions for know file types" is unchecked. Click apply and you should be able to change the extension to .py with no issues.

TheRoddie
Автор

One of the best Python tutorial playlist in YouTube...

SagunKayastha
Автор

You're a legend T Payne! I'm starting a course in data analytics soon and we will be using python. These tutorials have given me a great intro into python and programming in general.

brendanfoley
Автор

First of all, thank you, TP, for making these funny and educating videos which encourages me enormously. And just as are reminder, raw_input has been taken out of Python, so use input instead. Cheers

jasdnbsad
Автор

First of all I love your tutorials. they are well paced and clearly explain the concepts. One piece of constructive criticism though is that your guessing game that is supposed to randomly choose a number between 0 and 10 will only choose a number up to 9. randrange(10) is the range[0, 10) with 10 being excluded. Thank you for making these great videos.

JamesTaysom
Автор

for windows 8, search control panel, then do to appearance and personalization, the click folder options, then go into view and click hide extensions for know files

thejavacoder
Автор

you're so easy to follow and i love your style man!!

amrmoneer
Автор

Great videos, really enjoying them! Just a tip for anyone using Python v3.x.x, raw_input ("...") no longer works. It has been changed to input("...").

leootp
Автор

Great job! I have learned plenty of different codes such as batch (for windows OS), VBS, HTML, HTA, XML, Java, and there might be a few others I have run into. your series has really helped me and Python is probably the most useful of them all so far. Keep it up!

artofrevolution
Автор

its been 7 years but your videos help a lot

bhavya
Автор

Thank you so much for your vids man, I appreciate them. I am in a python class for collage, and with no prior programming experience, I wanted to pull my hair out. You break the syntax logic down brilliantly.

Cainan
Автор

You're amazing! Thank you so much! I hated coding back in college because my classes were extremely boring but now I think coding is fun!

suitable
Автор

Thank you! :D

You are welcome to use any IDE you'd like. I personally like Sublime 2. Its free and supports many different languages.

Anchor_Rainbow
Автор

Just so everyone knows, when he uses random.randrange(highest) where highest = 10, he said it will guess a number from 0 to highest and implied that it was inclusive, but I ran a while loop with a counter to count how many times it took to get a 10 from the random function, and I never got 10. So moral of the story is that random.randrange() will go from lowest inclusive to highest exclusive, so really he should have typed answer = random.randrange(highest + 1) so that 10 would be a possible guess like it is supposed to be. Love your videos!

Awesomekid
Автор

all you who dislike pls stop u know its basics if u pro look at his other videos and make sure wat u watch befor disliking

natanquirino
Автор

You explain the fundamentals so well! thx TP!

reemadesaimeshram
Автор

its very important for basic learners. Your language is easy to understand.

farhatulislamnafi
welcome to shbcf.ru