Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Community ▾
A
A
Quizzes
/
A program holds a number as text, and multiplies it in two ways. What does the program print?
Python Programming
Easy
High School (9–10)
Python Basics › Variables and Data Types
PCEP (Python Institute)
Created by
StemPy Lab
Stuck? Show a hint
A program holds a number as text, and multiplies it in two ways.
a = "7" b = 2 print(int(a) * b, a * b)
What does the program print?
77 77
It stops with
TypeError
14 77
14 14
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← A program reads an age from the keyboard and raises its own error for a negative age. The user types -5. What does the program print?
A program splits a four-digit number into parts with // and %. What does the program print? →
More on
Python Basics › Variables and Data Types
Discussion (0)
Log in
to join the discussion.
Loading…
All questions on this topic →
Problems on this topic
Each of these three programs stops with an error…
Easy
Say what the type of each result is, and what value it has. Decide on paper first.
Medium
A student wants to swap a and b, and writes…
Easy
Trace the program
Medium
All problems on this topic →