Hour of Python – Coding Challenge 2 | Switch Case

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


Enroll for exercises, tutorials, courses, and projects...

Enroll in Learn Python™ course

==================================================
Connect With Me!

Snapchat ► Rafeh1

Creative Commons — Attribution 3.0 Unported— CC BY 3.0
Рекомендации по теме
Комментарии
Автор

we could also use the .swapcase() method in python

saishyam
Автор

Hey man I think u should teach us to make a gui based application and introduce us networking in python because that is what we use mainly in real life

rishikeshbetigeri
Автор

Which is the inbuilt function to switch case?

parthsalat
Автор

how would it be if you converted each to ascii, and then returned +-32? I was kind of wondering how these functions are working in the background. thx!

evanperrygiblin
Автор

Please explane me why did you put += in the new_string function

denisdede
Автор

Are you going to continue your codefight series?

tonney
Автор

Super. I have a question, In your codecademy python tutorial, only 22 videos are there.where i can find rest of it?

jasminerose
Автор

Hello, im a pretty new programmer, 2 months old. i always wanted to code but i was just too lazy to do it but i got started 2 months ago and im getting into html5 because i think thts the basic.. im 2 months into it and im pretty decent. i dont know what to learn next and after that so on.. can you please tell me what i should learn, why and its functions? thank you! im currently learning from coding academy..

ram
Автор

Could someone explain what does += mean/do?

MrBaboonito
Автор

for character in string:
new_string += character.lower() if character.isupper() else character.upper()
return new_string
i think this is more pythonic

tushant
Автор

hey Qazi. I am from India. and I would love to become a programmer. right now I am in 10th grade and here in India we have to choose stream in 11th grade in order to persue our dreams. I don't know if its only in India or whatever. so should I choose computer science as my stream. what subjects are in computer science. and after learning few programming languages do I have to wait for my degree or I can do something related to programming before getting a degree. I know its co fusing but still. help me

akankshas
Автор

... i just started learning... but trust me i m in love with you ... :)

Tina-uifz
Автор

def string (my_string):
if my_string== (my_string.lower()):
return (my_string.upper())
else:
return (my_string.lower())
print (string("auraha"))
print (string ("AURAHA"))

isratjahan
Автор

Sir I can't understand how to install Python turtle graphics plz tell me about that

Neelkanthbhadani
Автор

Say Qazi, can you do a turtle graphics crash course kinda thing on your channel. Basic things like shapes and other cool things. I would say that will be amazing. BTW, nice hour long video XD

antishock
Автор

these challenges may be helpful.
there are many things not included in your tutorials quasi.

rajaramkarki
Автор

this was pretty much they shortest hour ever

guilleacq
Автор

sir please make video on how to convert .py to .exe

purusharthpandey
Автор

I do before see the solution hahahahahaha

"""
# Task 2
def switchcase(MyString):
return MyString.swapcase()

vString3 = "eU NÃO ENTENDO NADA"

print(switchcase(vString3))
"""

# Task 2, 5
vString4 = "mATHEUS É aLGUÉM"

def switchcase2(MyString):
listaString4 = []
palavra = ''

for letra in vString4:
val = letra.isupper()

if val == True:

else:


for item in listaString4:
palavra += item

return palavra

print(switchcase2(vString4))

Sr.MatheusRenda