Python 1

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

boolean

A _____ is like a light switch. It can only have two values. Just like a light switch can only be on or off, a _____ can only be True or False

variable

A _____ stores a piece of data, and gives it a specific name. For example: spam = 5

**

In python, we use __ to indicate exponents.

*

In python, we use __ to indicate multiplication

%

Symbol used to get the remainder between numbers.

comment

The # sign is for comments. A ____ is a line of text that Python won't try to run as code. It's just for humans to read.

#

The __ sign is for comments. A comment is a line of text that Python won't try to run as code. It's just for humans to read.

console

The ___ is where the results of the code are shown

str()

The ___ method converts non-strings into strings.

str()

The ___ method turns non-strings into strings!

concatenation

Combining strings together using a symbol is called _____.

==

Comparison operator meaning Equal to ___.

!=

Comparison operator meaning Not equal to ___

print

____ simply displays your code in the console.

string

Another useful data type is the ____. A ____ can contain letters, numbers, and symbols.

=

Assigns a value to a variable.

quotes

One thing that separates strings from variables is that string needs to be in ____.

+

The ___ operator between strings will concatenate them together, one after the other.

colon

This symbol is used at the end of an if statement.

if

__ is a conditional statement that executes some specified code after checking if its expression is True.


Set pelajaran terkait

Integrating Word and Excel Test #1

View Set

Algorithms Exam 3 (dynamic programming)

View Set

MKTG 409 Exam 3 Practice Questions

View Set

301 Business Law - Jeff Adams/ Evans

View Set

WGU C100 CH 6 NeoClassical Period

View Set