[ / / / / / / / / / / / / / ] [ dir / agatha / animu / drama / madchan / pdfs / rolo / rwu / rzabczan ]

/g/ - Technology

Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Options
dicesidesmodifier
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, pdf
Max filesize is 16 MB.
Max image dimensions are 15000 x 15000.
You may upload 5 per post.


File: 1571757f8edc2b6⋯.png (39.25 KB, 1231x471, 1231:471, qazwsxedc.png)

 No.6506

so im trying to learn python and after the first few lessons, there was a pig latin converter exercise. I already did it at codeacademy, now im trying it myself without codeacademy's step.

why does my code print the "else" statement when my input meets the requirements of the "if" statement?

 No.6507

line 7 mistake

<wordoriginal

>word_original

download python properly so the compiler prints the mistakes


 No.6508

File: a7e2a2dda75a9b8⋯.png (65.12 KB, 1366x768, 683:384, Untitledpeanut.png)

>>6507

fixed that error but it still doesn't print the "if" statement. hmmm


 No.6509

>>6508

i would say use google to troubleshoot but i will help (but you should know u r a noob)

.lower needs brackets like: word_original.lower()


 No.6510

>>6509

<brackets

>parenthesis


 No.6511

File: 053be64cfe39e38⋯.png (61 KB, 1366x768, 683:384, fuckcomputers.png)

>>6509

still doesnt fix it. wtf


 No.6514

>>6511

line 6 needs parenthesis too

word_original.isalpha()==True


 No.6515

>>6514

sorry line 5


 No.6518

>>6506

input is korean




[Return][Go to top][Catalog][Nerve Center][Cancer][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / agatha / animu / drama / madchan / pdfs / rolo / rwu / rzabczan ]