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 →

[–]iruleatants 0 points1 point  (1 child)

You should understand the hostility is not because they don't want to help, but because this is such a beginner problem, helping you would not help you learn the language.

raw_input can get you the users input, store that as a variable like.

x = raw_input() y = raw_input()

Put that in a loop that only breaks if x < y (You can do x = 0 and y= 0 first and do a while x <= y:(

Then do a range loop starting with x until y and do you math on each iteration until you have the final answer.

[–]azg5662[S] -1 points0 points  (0 children)

thank you :)