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 splits a four-digit number into parts with // and %. What does the program print?
Python Programming
Medium
High School (9–10)
Python Basics › Operators and Expressions
PCEP (Python Institute)
Created by
StemPy Lab
Stuck? Show a hint
A program splits a four-digit number into parts with
//
and
%
.
n = 4725 a = n // 100 b = n % 100 c = n // 10 % 10 print(a, b, c)
What does the program print?
47 25 2
It stops with
ZeroDivisionError
47.25 25 2
47 25 5
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← A program holds a number as text, and multiplies it in two ways. What does the program print?
The user types three numbers on one line, with a space between them: 4 2 9. The program cuts the line into pieces. What does the program print? →
More on
Python Basics › Operators and Expressions
Discussion (0)
Log in
to join the discussion.
Loading…
All questions on this topic →
Problems on this topic
A number has three digits, for example 472…
Medium
A student wrote these three formulas. Each one has a mistake in the brackets…
Medium
Work out each sum on paper, using the order of Python.
Easy
5000 rupees is put in a bank at 6 percent a year, with the interest added every year…
Hard
All problems on this topic →