All Pro Web Designs > > Learning Tutorials > Programming Languages > Python > Python Beginner Tutorial 7 (If Elif & Else)
Python Beginner Tutorial 7 (If Elif & Else)
- April 8, 2024
- Posted by: MainInstructor
- Category: Python
Video Title: Python Beginner Tutorial 7 For Absolute Beginners – (If Elif & Else)
-
Sale!
Wireless WIFI Repeater Extender Amplifier Booster 300Mbps
$29.99$14.99 Add to cartWireless WIFI Repeater Extender Amplifier Booster 300Mbps
Categories: Electronics, Wi-Fi Router, Wireless Wi-Fi Extender Tags: 300Mbps, 802.11N, Amplifier, Booster, Extender, mobile wi-fi booster, Remote, WIFI, Wireless, Wireless WIFI, Wireless WIFI Repeater, Wireless WIFI Repeater Extender, Wireless WIFI Repeater Extender Amplifier, Wireless WIFI Repeater Extender Amplifier Booster, Wireless WIFI Repeater Extender Amplifier Booster 300Mbps$29.99$14.99 -
Sale!
Full RGB Light Design Gaming Headset Headphones with Mic
$24.99$14.99 Add to cartFull RGB Light Design Gaming Headset Headphones with Mic
Categories: Electronics, Gaming, Gaming Headsets Tags: Design, Full, Full RGB Light Design Gaming Headset, Full RGB Light Design Gaming Headset Headphones, Full RGB Light Design Gaming Headset Headphones with Mic, Gamer, Gaming, Gaming Headset Headphones, gaming headset wireless, Headphone, Headphones, Headset, Light, Mic, Package, RGB$24.99$14.99 -
Sale!
Wireless BlueTooth Multi-Device Keyboard Mouse Combo
$39.99$19.99 Add to cartWireless BlueTooth Multi-Device Keyboard Mouse Combo
Categories: Electronics, Gaming, Gaming Keyboards, Keyboard Mouse Combos Tags: Combo, Keyboard, keyboard mouse combos, Mouse, MultiDevice, Set, WireKeyboard Mouse Combo, Wireless, Wireless BlueTooth Keyboard Mouse Combo, Wireless BlueTooth Keyboard Mouse Combos, Wireless BlueTooth Multi-Device Keyboard Mouse Combo, Wireless BlueTooth Multi-Device Keyboard Mouse Combos$39.99$19.99 -
Sale!
High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
$199.99$139.99 Add to cartHigh Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
Categories: Gaming, Gaming Chairs Tags: Adjustable, Chair, computer chairs, Desk, Executive, Gaming, Girl, Headrest, High, High Back Leather Executive Adjustable Swivel Gaming Chair, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar, High Back Leather Executive Adjustable Swivel Gaming Chairs, Leather, Lumbar, Office, Racing, Swivel$199.99$139.99 -
Sale!
Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
$29.99$19.99 Select optionsProfessional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
SKU: N/A Categories: Electronics, Gaming, Gaming Headsets Tags: Cancelling, Gaming, Gaming Headphones with Noise Cancelling Microphone, gaming headset, Headphones, Headset, LED, Light, Mic, Microphone, Noise, Professional, Professional LED Light Wired Gaming Headphones, Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone, Wired, Wired Gaming Headphones, Wired Gaming Headphones with Noise Cancelling Microphone$29.99$19.99 -
Sale!
Gaming Desk with LED Lights USB Power Outlets and Charging Ports
$349.99$249.99 Select optionsGaming Desk with LED Lights USB Power Outlets and Charging Ports
SKU: N/A Categories: Computer Desk, Gaming, Gaming Desk Tags: and Charging Ports, Charging, Desk, Desks, Gaming, gaming desk with led lights, Gaming Desks with LED Lights, Home, LED, Lights, Monitor, Office, Outlets, Port, Power, Room, Stand, USB, USB Power Outlets, White, Workstation$349.99$249.99 -
Sale!
Wired Mixed Backlit Anti-Ghosting Gaming Keyboard
$99.99$79.99 Add to cartWired Mixed Backlit Anti-Ghosting Gaming Keyboard
Categories: Electronics, Gaming, Gaming Keyboards Tags: Antighosting, Backlit, Blue, brown, Gaming, Gaming Keyboard, gaming keyboards, gaming keyboards and mouse, Keyboard, Laptop, Switch, Wired, Wired Mixed Backlit Anti-Ghosting Gaming Keyboard, Wired Mixed Backlit Anti-Ghosting Gaming Keyboards, Wired Mixed Backlit Gaming Keyboard$99.99$79.99 -
Sale!
Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
$119.99$59.99 Add to cartWireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
Categories: Electronics, Gaming, Gaming Headsets Tags: 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, ANC, Audio, Bluetooth, Cancellation, Ear, Earphone, gaming headset, Headphones, Headset, Hi-Res Over the Ear Headphones Headset, HiRes, Noise, Wireless, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Headphones, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headsets$119.99$59.99 -
Sale!
Wired Sports Gaming Headset Earbuds with Microphone
$19.99$9.99 Select optionsWired Sports Gaming Headset Earbuds with Microphone
SKU: N/A Categories: Gaming, Gaming Headsets Tags: Accessories, Earbud, Earphone, Earphones, Gaming, gaming headset with microphone, Headphones, Headset, IOS, Microphone, Sports, Wired, Wired Sports Gaming Headset Earbuds, Wired Sports Gaming Headset Earbuds with Microphone, Wired Sports Headset Earbuds$19.99$9.99 -
Sale!
150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
$49.99$29.99 Add to cart150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
Categories: Charging Stations, Electronics Tags: 150W, 150W Charging Station, 150W Universal Multi USB Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Stations, 150W Universal Multi USB MAX Charging Station, 16 Port MAX Charging Station, 3.5A, Charger, Charging, Fast, laptop charging stations, Max, Multi, Port, Stand, Station, Universal, USB$49.99$29.99
I sincerely could binge watch this whole series if i had the time, you explain so well and its so fun
Is there any way to manage the indentation for the big amount of code?
Hi Chris just wanted to thank you for your videos on python no one has anything remotely as good not even Udemy..
I used to code in vb6 and got into network administration and support. I wanted to return to programming and thought why not python. After watching just the first 7 of your videos, i was able to put together a program – i would post it to see what you think but didn't want to overstep. Im hoping i can get my life back, my ex pretty much wiped me out and sys admin isnt enough money, so maybe this could be my way back. Or maybe im too old, anyways thanks man…
I understand the if and else statements, but i really don't get the elif statement. couldn't you just add another if statement instead?
can you assign variables as like the enter key? like when I'm doing inputs.
Do you have any videos explaining how to make spite nodes move? I'm trying to make an artificial game pad where the arrow buttons animate a sprite node in the x or y axis by making say the left node move the character along the x axis by a negative number and the right node moving the same sprite node along the x axis by a positive number. I figure once I understand how to do this making the up and down buttons do the same thing along the y axis should be easy to re-write.
So elif is basically the same as else? But for if you want an extra condition. If 'if' and 'else' don't do everything you want 'elif' is your backup reserve extra: 'else' elif is else #2. Is that what I'm to take away from this? It seems to function identically to 'else'
Cheers Mate !
Why didn't you just put "my_name = input("Name: ")" Instead of you needing to change it in the code everytime!
Can you check if a variable is equal to a variable?
This is my second time when i post a comment on youtube -the reason is to thank you for you tutorials! Keep it up, it really helps!
I keep getting "pylint not installed" yet each time I say install it, it says it is???? What have I done wrong???
I doing exercise and i am stuck on this. I want to check if a number is odd or even and multiple of 2 and 4! I could build a code to do that. But i wanted to add an extra. In the beggining i want to check if the input it´s really a number or not, i have following code witch i saw someone posting on stackflow….
number = input("Just pick a number?n")
number = 0
while True:
try:
number = int(input("Pick a number: n"))
except ValueError:
print("It's not a number!n")
continue
else:
print("It's a number")
break:
if number % 4 == 0: #if is multiple of 4
print("The number " + str(number) + " is multiple of 4 and a even number")
elif number % 2 == 0: # if is multiple of 2 and if is even number
print("The number " + str(number) + "is a even number")
else: #is odd number
print("The number " + str(number) + "is a odd number")
——————————————————————————————-
Try diferent ways to check a number, this code gives me sysntax error on line 6 (except Value Error:)
I'm having this issue that I don't know how can I stop the program from exiting! just to show the results.. Thanks Chris!
Chris your video are great! simple to follow, easy to understand…..You make programming look simple