0

what is wrong here

## ##Dziewczyna czy chƂopak ## while True: imie = input ("Podaj imię: ") print(imie) i = imie[0] print (i) i = i.upper() imie = i + imie[1:] print (imie) print ("imie ",imie," ma ",len(imie), " liter ") ile_liter = len(imie) for i in range(ile_liter): print (i," litera imienia to: ",imie[i]) ostatnia_litera = imie[ile_liter-1] print ("Ostatnia litera to: ",ostania_litera) if ostatnia_litera != "a": print (imie + " to chƂopak ") elif imie in ["Kuba","Barnaba"]: print (imie = " to chƂopak ") else: print (imie + " to dziewczyna ") odpowiedz = input("Sprawdzamy dalej?(T/N)") if odpowiedz.upper() != "T": break

19th Mar 2019, 1:33 PM
Scoutyboy Tf2
Scoutyboy Tf2 - avatar
6 Answers
+ 3
You can not just post a long code here without any explanation and ask: 'What's wrong?' It looks like you haven't even tried to find your mistakes yourself. But this is very important and belongs to your practice if you want to learn how to code! Try to run your code and check line by line, if the results come out as you expect to, until you find the point where it gets off track!
19th Mar 2019, 2:16 PM
HonFu
HonFu - avatar
+ 3
scouty boy tf2 a bit of explaining might have helped😊 since I don't know which language is used here I can't help more I added sys because of non English characters + some not defines Happy coding.. https://code.sololearn.com/cD1JSRtNAv92/?ref=app
19th Mar 2019, 3:39 PM
Daljeet Singh
Daljeet Singh - avatar
+ 2
scouty boy tf2 Instead of posting your code directly you should post a link to your code from the playground. Click on the + then choose insert code. You see a list of codes (hot today --> change it: my codes) then click on your code and click "done".
19th Mar 2019, 3:05 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
I think chlopak is Polish for child, dziewczyna means girl and imie means name. I hope this helps
19th Mar 2019, 2:22 PM
Anna
Anna - avatar
0
I only know that something is wrong with spaces or tabs
19th Mar 2019, 2:36 PM
Scoutyboy Tf2
Scoutyboy Tf2 - avatar
0
Thanks everyone for at least trying to help i know the problem and i fixed it
19th Mar 2019, 3:42 PM
Scoutyboy Tf2
Scoutyboy Tf2 - avatar