PYTHON LESSON 1: Syntax (Part 1)

studied byStudied by 5 people
0.0(0)
get a hint
hint

print statement

1 / 7

Tags and Description

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 13 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 17 people
Updated ... ago
4.5 Stars(2)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 18 people
Updated ... ago
4.5 Stars(2)

Explore top flashcards

flashcards Flashcard187 terms
studied byStudied by 24 people
Updated ... ago
4.0 Stars(1)
flashcards Flashcard59 terms
studied byStudied by 16 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard65 terms
studied byStudied by 22 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard53 terms
studied byStudied by 26 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard105 terms
studied byStudied by 13 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard53 terms
studied byStudied by 39 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard103 terms
studied byStudied by 31 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard44 terms
studied byStudied by 45 people
Updated ... ago
5.0 Stars(1)