Python Q/A

Primary tabs


Bookmark to learn: Login to use bookmarks.

Bookmark to learn: Login to use bookmarks.

Add to collection ... add Python Q/A to your collections:

Help using Flashcards ...just like in real life ;)

  1. Look at the card, do you know this one? Click to flip the card and check yourself.
  2. Mark card Right or Wrong, this card will be removed from the deck and your score kept.
  3. At any point you can Shuffle, Reveal cards and more via Deck controls.
  4. Continue to reveal the wrong cards until you have correctly answered the entire deck. Good job!
  5. Via the Actions button you can Shuffle, Unshuffle, Flip all Cards, Reset score, etc.
  6. Come back soon, we'll keep your score.
    “Repetition is the mother of all learning.”
  7. Signed in users can Create, Edit, Import, Export decks and more!.

Bookmark to learn: Login to use bookmarks.

Share via these services ...

Email this deck:

Right: #
Wrong: #
# Right & # Wrong of #

The print() function in Python prints the specified message to the screen. The message can be a string or any other object.


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.