forked from tdwojak/Python2017
Zad 2 and 3
This commit is contained in:
parent
7fa3ef113c
commit
04b8001333
@ -15,9 +15,9 @@ def pokemon_speak(text):
|
|||||||
value += i.upper() if b else i.lower()
|
value += i.upper() if b else i.lower()
|
||||||
b = not b
|
b = not b
|
||||||
if i.isupper() == True:
|
if i.isupper() == True:
|
||||||
return print(text)
|
return text
|
||||||
else:
|
else:
|
||||||
return print(value)
|
return value
|
||||||
|
|
||||||
|
|
||||||
pokemon_speak('pokemon')
|
pokemon_speak('pokemon')
|
||||||
|
Loading…
Reference in New Issue
Block a user