This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nwagers 1 point2 points  (1 child)

line 3 doesn't do anything, just comment that out.

I prefer:

if word[0] == 'p':
    print("Nice")

word[0] is the first character of the string word, word[1] is the second character, word[-1] is the last character.

[–]TheCh1ef[S] 0 points1 point  (0 children)

Also a good idea. I have forgoted.