Home Python

Welcome to the Python Projects Page

We make coding content to show what’s happening behind the scenes in electronics...

Python is a coding language used to make programs (apps). To print (write):

print('hello')


To make an input (ask), there are two ways:

Way number one:

input("What is your name?")

This way can't be used in an if statement

Way number two:

i = input("What is your name?")

This way can be used in an if statement

Talking about if statements, here's how to write one:

i = int(input("How old are you? "))
if i >= 18:
    print("You fit in our company terms and conditions!")
else:
    print("You don't fit in our company's terms and conditions, so you can't create an account!")