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 20 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 5 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 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 15 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 108425 people
Updated ... ago
4.9 Stars(528)

Explore top flashcards

flashcards Flashcard30 terms
studied byStudied by 61 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard66 terms
studied byStudied by 14 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard43 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard60 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard108 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard47 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard97 terms
studied byStudied by 42 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard81 terms
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)