You are on page 1of 6

Python

Python
• One of the most popular programming language
• Large and small companies
• Introductory programming language

• Easy to learn and read


• Simple syntax
• Used in different websites
PyCharm
• IDE - Integrated Development Environment
• Environment to develop a program
• Has a text editor where you can code your program
• Ability to run Program
• Debugger
1st Code
Hello World!
• print (“Hello World!”)

Hello World!
- A string, set of characters
- Enclosed in “” or ‘’

Print
- Reserve word
- Print whatever is in the ()

• print (3)
Variables
• a = 1
• 1 is assigned to variable a (container)
• print (a)
• a is not a string, no “”

• b = 2
• c = b
• print (a)
• print (c)
• print (a+c)
Variables
• created the moment you first assign a value to it
• do not need to be declared with any particular type and can even change
type after they have been set
• must start with a letter or the underscore character
• variable name cannot start with a number
• variable name can only contain alpha-numeric characters and underscores
(A-z, 0-9, and _ )
• case-sensitive (age, Age and AGE are three different variables)

a = “Name”
print (a)

You might also like