1
0
forked from tdwojak/Python2017

Zad 2 and 3

This commit is contained in:
s45158 2017-12-16 12:47:23 +01:00
parent 7fa3ef113c
commit 04b8001333

View File

@ -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')