csev / py4e

Web site for www.py4e.com and source to the Python 3.0 textbook
http://www.py4e.com
2.85k stars 1.77k forks source link

Chapter --- conditional execution---slide 19 and 4.32 mark in The LF variations video needs a x=value #446

Open 1nky opened 2 weeks ago

1nky commented 2 weeks ago

Hi the video and slide are both used in chapter 3 , if you take the slide and when Chuck pauses to give students a moment to work through the code, I noticed that there is no value for x. So if you take the code a face value (ie no value for x) the output is different than what the lesson intends.

slide19

note how the value for x is never defined,,,,, I think the author intended for the value to be the same as the previous example, and it may seem pedantic but it did cause me to go "Oh it's none of the listed conditions " .

I get that the intention is show the difference the operators make but if you read or watch it in isolation i don't think it's right.

1nky commented 2 weeks ago

Yes okay I see it makes no difference what the value is ...I guess that answers that!