Python Tutorial - Python Crash Course for Beginners

preview_player
Показать описание
Learn Python with the Python Crash Course for Beginners. In this Python tutorial we cover all the basics of the language, including variables, data types, data structures and functions. Build a CLI number guessing game in the course's final project.

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

found your channel recently, i think ur smart contract contents is unique and so good. Thanks in advance and i hope you'll continue making videos about it :D

baselkelziye
Автор

I appreciate this video, got me back on track with python after a really long time!
I'm just gonna leave my solutions to the coding challenges here:



timeOfDay = int(input("What is the timeOfDay? "))

if timeOfDay >= 0 and timeOfDay <= 5:
print("Good night")
elif timeOfDay > 5 and timeOfDay <= 10:
print("Good Morning")
elif timeOfDay > 10 and timeOfDay <= 16:
print("Good afternoon")
elif timeOfDay > 16 and timeOfDay <= 20:
print("Good evening")




make = input("What brand do you want as car? ")
model = input("What model would you like? ")
year = input("From what year is the car? ")
price = input("What is the price of the car? ")

print(f"For sale! A {make} {model} from the year {year}, for only ${price}!")



softDrinks = ["sprite", "diet coke", "coke", "pepsi"]
drinkSizes = ["small", "medium", "large", "extra large"]

softDrinks.sort()

for drinks in softDrinks:
for sizes in drinkSizes:
print(f"Press here for a {sizes} {drinks.capitalize()}")

Not sure if these are executed very well, but the output always seems correct.. :D

brentclaes
Автор

Do you know how to make python main.py work

ShayanMK
join shbcf.ru