Skip to main content

Posts

Featured

Py06: What IF I want to repeat FOR a WHILE?

Py06: What IF I want to repeat FOR a WHILE? "First, solve the problem. Then, write the code." - John Johnson   Hello, if you've read the last article in the series, you should already know what problem we had discussed in past and even if not, the title of this article should give you some hint. So, last articles solved the problem of declaring new variables for everything which is related in some manner, by using a list , set , and dict.  But if you don't know about them, I would suggest to read it. If you're reading this that means you already know about the list, set and dict type in Python. So, let's move forward with a question. Before moving on let's talk you about conditionals in Python. The language offers if-else statements for performing something only if a certain condition is true. I would suggest to open a new file instead of working on the command line as it would be difficult to work there as the commands would be multiline...

Latest Posts

Py05: Collect'em All

Py04: What Type of Data are you?

Py03: Python as a calculator

Py02: First Steps towards Python

Py00: An Introduction to the Python Language

Py01: Starting With Python