Python Code Results and Data Types

Python Code Results and Data Types

Assessment

Flashcard

Computers

University

Hard

Created by

Ariel LU

Used 2+ times

FREE Resource

Student preview

quiz-placeholder

4 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the result of the following codes?

f = "1234"

print(" Variable f type = ", type(f))

Back

string

2.

FLASHCARD QUESTION

Front

What is the data type of it when you use the input() function to input data?

Back

string

3.

FLASHCARD QUESTION

Front

What is the output of the following code?

var1 = 12

print(var1)

print(str(var1))

Back

12

12

4.

FLASHCARD QUESTION

Front

What is the value of x after executing

x,y = 1,2

x,y = y,x

Back

2

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers