Lesson 6 - Python Programming (Automate the Boring Stuff with Python)

preview_player
Показать описание


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

This is one of the better tutorials on the web. The matching of code with the visual flow charts is fantastic to understand how to the code is executing. Thank you.

mhalleyf
Автор

These videos are amazing. Just getting into coding, dabbling really, and was pointed your direction by someone on reddit. Thank you for the time you spent spreading knowledge! Even 6 years later it's invaluable

dukenukon
Автор

So I'm a python newbie, less than 1 month experience and one of the ways I learn to understand is to reverse engineer and try to redevelop in my own way, other times I like to add a little to develop something further with my current knowledge. I'm sure what I add can be written to improve the code and I love to see these improvements so that I can reverse engineer. So with this said here is a small portion of code to add on the programmers humour..

# The Intelligence test

guesses = 0
name = ("")

while name != ("your name") and guesses != 7:
guesses += 1
name = input("Please type your name. ").lower()

if guesses == 7:
print("I really think you should quit if you didn't get it yet!")
elif guesses == 1:
print("Congratulations! you're a Genius")
elif 2 <= guesses <= 3:
print("Wow good job, you're above average intelligence! ")
elif 4 <= guesses <= 6:
print("You are of average intelligence, keep studying! ")
else:
quit

mrwalker
Автор

Mr. Sweigart -- thank you so much for all that you do to help those wanting to learn Python. You are wonderful!

terrisquire
Автор

hello this video and your books really helps!

and at 3:50 i think its better to use name = input('please type your name.') instead of writing them in two different lines, this saves time.

i hope this helps!

endercommunity
Автор

appreciating your efforts still in 2022

tanutalwar
Автор

Good day sir. I’m currently reading your book and I have a problem with command line argument in the password locker code

blessingokoro
Автор

I don't understand what is being established by beginning with:
name = ' '

What does it mean to define something as a blank string?

karlgassmann
Автор

Everyone else seems to be pleased with this so maybe its just me but i found the examples of "name" and "your name" to be confusing.

Razormiller
Автор

Broo this is still boring af. I give up lol.

speedymr
Автор

I can't thank you enough! I was writing a program in python and I ended up getting stuck because I didn't understand the 'if' and 'while' statements. I spent weeks searching the web and watching videos for more input, but none of them really went into depth. After watching this, I was able to complete my program with ease! ...Keep doing what you do, because you're the best!

HeartzHugzKissez
Автор

My second day looking at Python, here's what I came up with:

print('Hi.')
inputRequest = 'Y'
while inputRequest == 'Y':
print('Please identify yourself to win.')
theWincondition = input()
if theWincondition == 'Vaidotas': #my name
print('You win, I surrender.')
break
else:
print('You lose, sorry. Try again? Y/N')
inputRequest = input() #the point where it asks to continue
if inputRequest == 'Y':
print('Ok, let\'s try this again! ;)') #re-affirmed while-loop
elif inputRequest == 'N':
print('Sorry to see you go, bye') #denied while-loop

I've always wanted to be able to program this logic (conversation-wise) on an actual program correctly. Finally got it. :) Is there an even simpler way to program this?

lifeisstrnge
Автор

Firstly, I don't know what to say. This series is no doubt helpful. I have learnt a LOT during this and I'm glad that there are more lessons to go. I will definitely buy your book if I can. At first, I'm like 'what does that mean' but after I understand why you've done something. The good thing is that I have Python on my computer so I can put in extra practice in along with this. Thanks for making helpful tutorials!

thegamevlogger
Автор

Just purchased two of your books and :) the online Courses on your website, i am enjoying the way you teach!

GPTDavid
Автор

Thanks for your book and videos. They are truly a godsend for the absolute beginner. Well done!

forwork
Автор

Really well done! The best tutorial on Python I've ever seen!

pietrot
Автор

# my very first Python Code Poem

PotatoCount = 1

if PotatoCount == 1:
print (str(PotatoCount) + ' potato, ')
PotatoCount = PotatoCount + 1

while PotatoCount < 4:
print(str(PotatoCount) + ' potatoes, ')
PotatoCount = PotatoCount + 1

if PotatoCount == 4:
print('four!')
print()
PotatoCount = PotatoCount + 1

while PotatoCount < 8:
print(str(PotatoCount) + ' potatoes')
PotatoCount = PotatoCount + 1

if PotatoCount == 8:
print('more!')

LaszloRobertZsiros
Автор

Thank you, Albert! Finally, I understood it! You`re awesome! :)

nikolayvolkov
Автор

these are great, sometimes there a tad bit slow, others its a bit fast but by the end of the vid u understand it all.

thorguy
Автор

Best in the history of python tutorial

AmanSirohi