Re: [Tutor] Need help with one problem.

2017-02-15 Thread Steven D'Aprano
On Wed, Feb 15, 2017 at 01:00:30PM -0500, Adam Howlett wrote: > Write an if-else statement that assigns 20 to the variable y if the > variable x is greater than 100. Otherwise, it should assign 0 to the > variable y. > > Is there an easy way to solve this problem? Yes. What have you tried? H

Re: [Tutor] Need help with one problem.

2017-02-15 Thread Alan Gauld via Tutor
On 15/02/17 18:00, Adam Howlett wrote: > Write an if-else statement that > assigns 20 to the variable y if the variable x is greater than 100. > Otherwise, it should assign 0 to the variable y. > > Is there an easy way to solve this problem? Yes, just do what it says. Maybe if I reword the pro

[Tutor] Need help with one problem.

2017-02-15 Thread Adam Howlett
Write an if-else statement that assigns 20 to the variable y if the variable x is greater than 100. Otherwise, it should assign 0 to the variable y. Is there an easy way to solve this problem? ___ Tutor maillist - Tutor@python.org To unsubscribe or ch