Ready to be published? LXer is read by around 350,000 individuals each month, and is an excellent place for you to publish your ideas, thoughts, reviews, complaints, etc. Do you have something to say to the Linux community?
This is a "newbie" mistake, but these little details do tend to get in the way, which is why I'm posting my wee Python tutorial. If you know Python or programming, even reasonably well, this will probably seem way too simple to you. Just giving you a "heads up" so you don't waste your time. I encountered a lesson that teaches storing conditionals using booleans. The code was presented like this:..
young = age < 45
slim = bmi < 22.0
if young and slim:
risk = "low"
elif young and not slim:
risk = "medium"
elif not young and slim:
risk = "medium"
elif not young and not slim:
risk = "high"
Of course, you can't really run this. If you try, you get this:
A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.
Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help