PYTHON LESSON 1: Syntax (Part 1)

studied byStudied by 7 people
0.0(0)
Get a hint
Hint

print statement

1 / 7

flashcard set

Earn XP

Description and Tags

8 Terms

1

print statement

A(n) ________ is the easiest way to get your Python program to communicate with you.

New cards
2

symbols

A string can contain letters, numbers, and ________.

New cards
3

Text

________ in Python is considered a specific type of data called a string.

New cards
4

SyntaxError

________: EOL while scanning a string literal.

New cards
5

double quotes

While ________ ") (and single- quotes (‘) are both acceptable ways to define a string, a string needs to be opened and closed by the same type of quote mark.

New cards
6

A string, so named because theyre a series of letters, numbers, or symbols connected in order

as if threaded together by string

New cards
7

"The following piece of code does the following steps

"takes in some input"does An Important Calculation"returns the modified input and a string that says "Success! "

New cards
8

SyntaxError

EOL while scanning a string literal

New cards

Explore top notes

note Note
studied byStudied by 18 people
... ago
4.0(1)
note Note
studied byStudied by 12 people
... ago
5.0(1)
note Note
studied byStudied by 34 people
... ago
5.0(1)
note Note
studied byStudied by 13 people
... ago
5.0(2)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 57 people
... ago
5.0(1)
note Note
studied byStudied by 22 people
... ago
5.0(1)
note Note
studied byStudied by 1975 people
... ago
4.7(11)

Explore top flashcards

flashcards Flashcard (93)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (115)
studied byStudied by 13 people
... ago
5.0(2)
flashcards Flashcard (22)
studied byStudied by 17 people
... ago
5.0(3)
flashcards Flashcard (75)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (29)
studied byStudied by 27 people
... ago
5.0(2)
flashcards Flashcard (40)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (134)
studied byStudied by 2615 people
... ago
4.0(26)
robot