Re: Sum of few numbers by using for and range

2019-02-17 Thread DL Neil
On 18/02/19 8:32 AM, Chris Angelico wrote: On Mon, Feb 18, 2019 at 6:12 AM DL Neil wrote: The reason this course caught my attention (and which is relevant to you, per Chris' and Dennis' recent advice) is that the course revolves around an 'active textbook'. This intersperses learning material

Re: Sum of few numbers by using for and range

2019-02-17 Thread Chris Angelico
On Mon, Feb 18, 2019 at 6:12 AM DL Neil wrote: > > sure you truly understand what is going on. Try to piece together what > > a section of code is doing, step by step. Write down on a piece of > > paper what the variables are at each point in the program. Then, AFTER > > doing the work manually, r

Re: Sum of few numbers by using for and range

2019-02-17 Thread DL Neil
^Bart, Which course are you attempting? What are you using as learning material? (it seems ineffectual) - further comments interspersed, below:- On 18/02/19 5:30 AM, Chris Angelico wrote: On Mon, Feb 18, 2019 at 3:26 AM ^Bart wrote: I need to do what I wrote in the subject but... I don't u

Re: Sum of few numbers by using for and range

2019-02-17 Thread Chris Angelico
On Mon, Feb 18, 2019 at 3:26 AM ^Bart wrote: > > Hello! > > I need to do what I wrote in the subject but... I don't understand how > could I fix my code... :\ > > number1 = int( input("Insert the first number:")) > number2 = int( input("Insert the second number:")) > number3 = int( input("Insert t

Sum of few numbers by using for and range

2019-02-17 Thread ^Bart
Hello! I need to do what I wrote in the subject but... I don't understand how could I fix my code... :\ number1 = int( input("Insert the first number:")) number2 = int( input("Insert the second number:")) number3 = int( input("Insert the third number:")) print("Total amount is:") for x in ra