Skip to main content

Posts

Showing posts from May, 2017

If else in python : Beginners Python Programming Tutorial - How to become a Python Jedi - Part 5

Welcome back friends to another post on TheCodingProject and we are back with the fourth chapter of the Beginner Python programming tutorial - How to become a python Jedi. This time we are going to learn about decision making in python using the If Else statement in python. The If-Else statement? In Python Programming, decision making is done by using a conditional statement like the If-Else statement. An If statement consists of 3 parts → If keyword a conditional operator the values which needs comparison Now it should be kept in mind that the only values that an If condition returns are a True or a False , Using this True or a False we can decide if the condition that we are trying check is right or wrong. When Coding knowledge came to my rescue→ Let me tell you a story about how coding knowledge came to rescue . I have this neighbour named Alex who doesn't quite seem to be a regular guy. Wait ! actually he never seemed to me as a regular hum

Logical operators in python : Beginner Python Programming Tutorial - How to become a Python Jedi - Part 3-4

Welcome back friends to another post on TheCodingProject and we are back with the fourth chapter of the Python programming tutorial - How to become a python Jedi. This time we are going to learn about logical operators. What are Logical Operators ? Logical operators are used to compare any two values, be it two numbers , two strings or any other objects. In short these operators help us to make a decision by giving back the results of a comparison. logical operators always return either a True or a False. Different Logical operators → == Equal to !=  Not equal to <   Less than >   greater than <= Less than or equal to >= Greater than or equal to Examples of Logical operators → Let’s get into some examples to better understand the usage of comparison operators. Copy the below code and paste it in pycharm or any other editor that you have. Additionally you can also download the comparison operators.py code file of this tutorial from g

Boolean in Python : How to become a Python Jedi - A Python programming tutorial - part 3

Welcome back friends to another episode of TheCodingProject and we are back with the third chapter of the Python programming tutorial - How to become a python Jedi. This time we are going to get a taste of boolean operators. What are Boolean Operators ? Computers don’t understand the common human language, they only speak and understand machine level language and this language is made up of only two numbers 0 & 1. These numbers are known as binary numbers & this language is known as binary language. Now if you are a crazy nerd like me and you wanna know more then dive in here . The numbers 0 & 1 also represent decision making as they also represent True (for 0) & False (for 1) and these two operators are known as boolean operators. Enough talk man, I’m here to learn code!!😠 Okay Okay I just took a trip in my emotion boat. I know you want to learn code so let’s just cut the talk talk & dive to code code. Yayyy!! Boolean operators in acti