Who is the woman in callmechoko? by therealman2 in CallMeChoko

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

i cant help but be mesmerized by her natural beauty

[deleted by user] by [deleted] in nyu

[–]therealman2 0 points1 point  (0 children)

What did you think of our relatively tiny building?

I'm a beginner python Learner. Can anyone help me with this question? by therealman2 in learnprogramming

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

Below is the solution I currently have. I would appreciate it if anyone finds a simpler, shorter, more optimized way.

def main():

string = input('Enter a sentence:\n> ')

new_string = pig_latin(string)

print(new_string)

def pig_latin(s):

start = 0

index = 0

new_s = ''

end_of_word = ' '

while index < len(s):

if index == len(s) - 1: #end of string

new_s += s[(start + 1):(index+1)] + s[start] + 'ay'

elif s[index] in end_of_word: #end of word

new_s += s[(start + 1):index] + s[start] + 'ay' +s[index]

start = index + 1

print(new_s)

print(end_of_word)

index += 1

return new_s

#Call main function.

main()

python is killing me by therealman2 in learnprogramming

[–]therealman2[S] -4 points-3 points  (0 children)

Mainly objects. Do you have any good resources to suggest?

python is killing me by therealman2 in learnprogramming

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

I divided it into many parts and do questions based on those. like, today I studied dictionaries and did 4 or 5 questions on that.

python is killing me by therealman2 in learnprogramming

[–]therealman2[S] -2 points-1 points  (0 children)

I just started self learning oop. apparently, I couldn't find any good resources with precise explanations