The print() function in Python prints the specified message to the screen. The message can be a string or any other object.
Example:
print”Hello Project Steel”
In Python 2, you write the “Print” statement
differently from Python 3.
Python 2 | print “Hello, World!”
Python 3 | print(“Hello, World!”)
Text in Python is considered a specific type of data called a “String.” A “String” is named because they’re a series of letters, numbers, or symbols connected in order.
You are able to combine MULTIPLE strings using this, “+”
print “This is “+” a good string”
Python uses VARIABLES to define things that are subject to change.
(Variables greeting_message and current_exercise shown equal to a string)
greeting_message = “Welcome to Codecademy!”
current_exercise = 5
What is Python used for?
Python is used for:
* Web Development (server side)
* Software Development
* Mathematics
* System Scripting
What is Python’s syntax compared
to other programming languages?
Python was designed for readability,
and has some similarities to the English
language with influence from mathematics.
Python uses new lines to complete a command, as opposed to other programming languages which often use semicolons or parentheses.
Python relies on indentation, using
whitespace, to define scope; such as the scope of loops, functions and classes. Other programming languages often use curly-brackets for this purpose.