Professional Documents
Culture Documents
Python
Python
Python
• One of the most popular programming language
• Large and small companies
• Introductory programming language
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)