https://git.wmi.amu.edu.pl/tdwojak/Python2017/src/master/labs03 #1

Open
s45158 wants to merge 17 commits from s45158/Python2017:master into master
Showing only changes of commit a5ec56ec66 - Show all commits

View File

@ -9,7 +9,23 @@ na wielką. Np. pokemon_speak('pokemon') powinno zwrócić 'PoKeMoN'.
def pokemon_speak(text):
pass
value = ''
b = True
for i in text:
value += i.upper() if b else i.lower()
b = not b
if i.isupper() == True:
return print(text)
else:
return print(value)
pokemon_speak('pokemon')
pokemon_speak('do not want')
pokemon_speak('POKEMON')
#DLACZEGO WYSWIETLA ERROR SKORO PROGRAM DZIALA PRAWIDLOWO ??????
def tests(f):