Introduction to Programming Python and C++

Tag Archives: Mastery


Mastery10Basic output (print) in Python The main output function is called print(). This function basically lets you make your output look nicer and easier to read. So you can basically take your input and save it in our variable “n” so you can reuse it using your output function print(). n = input(“Please enter your […]


Basic types and their use in Pythonintegers  Whole numbers from negative infinity to infinity, such as 1, 0, -5, etc. Integers or any number negative or positive without decimals can be assigned variables. You can name them anything. You can work with integers directly or assign them to variables. By work I mean you can […]

Mastery28 & Mastery29

User input (text based) in Python (basic) and Validated user input in Python One way to have data in your code is to get it from external sources such as databases, another computer, the Internet, etc. The options are endless(sort of). Depending on what your code is about you will find that user input is quite […]

Mastery15 & Mastery16 & Mastery17

Conditionals are generally a way to check something. The classic “if” example is easy to understand. The syntax helps you understand it a bit. A normal if statement would look like this: if(condition): do something Let’s see an example with food because I’m hungry. My code will basically ask if the food is ready by […]


Install Linux on their own computer. These are some reasons why people install Linux: -it’s free -It is customizable so you can tailor it to suit your preferences -It forces you to learn more -It is very difficult to get malware, mind you it remains a possibility. -It is not run by corporate interests so […]


Submit work via Blog RSS and GitHub RSS stands for Really Simple Syndication or Rich Site Summary Subscribing to a website RSS removes the need for the user to manually check the website for new content. Instead, their browser constantly monitors the site and informs the user of any updates. The browser can also be […]


The Zen of Python The Zen of Python is an Interesting easter egg in Python. Originally written by Tim Peters in 2004, it as an informational entry number 20 in Python Enhancement Proposals You can find it by entering the statement “import this” I shall comment on a few of them because I think they […]


Use of comments in Python It is said that comments tell you why and your code tells you how. When you code, you are telling your computer what to do using just instructions. It is not a human that needs to know the actual reasons why it works but you do have to keep your […]



What should you work on?

Week #12 and more partial exams for you.

For this week's readings:
C++ (TC1017) should either be looking at support for your project, ImageMagick C++ libraries are a good start.
Python (TC1014) should be finishing chapter 11 (Dictionaries).