Have a look at this...

>>> chores = 5
>>> paper_round = 30
>>> spending = 10
We’ve just created variables named ‘chores’, ‘paper round’ and ‘spending’. We can
then re-type the equation to get:
>>> print (chores + paper_round - spending) * 52
1300
16 CHAPTER 2. 8 MULTIPLIED BY 3.57 EQUALS. . .
Which gives the exact same answer. What if you get $2 more per week, for
doing extra chores. Change the ‘chores’ variable to 7, then hit the up-arrow key (↑)
on your keyboard a couple of times, until the equation re-appears, and hit the Enter
key:
>>> chores = 7
>>> print (chores + paper_round - spending) * 52
1404

What do they mean by

then hit the up-arrow key (↑)
on your keyboard a couple of times, until the equation re-appears, and hit the Enter
key:

Please help

Recommended Answers

All 2 Replies

Hitting the up-arrow key should bring back the previous lines of input, at least this is the case if you are running python in a shell (or cmd) window. If you are using idle, use ALT-p intead of up-arrow. Other interfaces may have different shortcuts.

Also please use descriptive thread titles, 'Need help...' is not very good, everybody needs help :)

Thanks a lot.And...

Also please use descriptive thread titles, 'Need help...' is not very good, everybody needs help

I'll take care about that bit.Thanks again!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.