Python Beginner Tutorial #4 - if and else!

preview_player
Показать описание
Python is one of the most popular programming languages worldwide.
You can write scripts, create apps, websites and games with Python. It's especially suitable for programming beginners

In part 4 of Python tutorial for beginners, we will look at how to execute code based on conditions (true and false)
We introduce the if statement, else statement and elif statement

Like and Subscribe for more Python for beginners tutorials!

❤️ You want to support this channel? ❤️

Python Shorts Playlist

Music:
Licensed under Creative Commons: By Attribution 3.0 License

#python #pythontutorial #learnpython #if #else
Рекомендации по теме
Комментарии
Автор

if youHaveQuestions:
letMeKnowInTheComments()
else:
LikeThisComment()

:)

zippycode
Автор

This is helping a lot as a starter in Python. Keep up the good work!

Bleezeyy
Автор

l see you in tiktok, and comes here. Thx bro

muhammedsultanov
Автор

Upload more faster im waiting you everyday 😄❤️

sakwn
Автор

That's cool man, I use Python to make my games

wahab
Автор

I make all of your challenges im proud of myself 🤣🤣❤️

sakwn
Автор

n = "ZippyCode is a GOD programming"
if n == "ZippyCode is a GOD programming":
print("thank you, keep me teaching")

KANCIAPAGAMINGROOM
Автор

Can we make a yes or no question like this?
print("Are you happy?")
y = input()
n = input()
if y == "yes":
print("nice")

if n == "no"
print("aww")

is it possible for the
if y == (like multiple answers like yes, yeah, ye)
if n == (no, nope, nah)

so do we need to use coma between the multiple answers like this?
if y == "yes", "yeah", "ye"
print(nice")

please reply, im a beginner :)

blank-pbjd
Автор

When I try to run the command at 0:38 it doesnt work and says: "IndentationError: expected an intended block after 'if' statement on line 21" What should I do?

Peabrain