HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Quizzes
  2. /Seven divided by seven is worked out with / and with //. The two results are compared, and then a string and True are each tested against the number one. What does the program print?
Python ProgrammingMediumHigh School (9–10)Python Basics › Operators and ExpressionsPCEP (Python Institute)
StemPy LabCreated by StemPy Lab

Seven divided by seven is worked out with / and with //. The two results are compared, and then a string and True are each tested against the number one. a = 7 / 7 b = 7 // 7 print(a == b, type(a) == type(b), "1" == 1, True == 1) What does the program print?

Log in to save
← All Quizzes
← 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?A student turns values into numbers with int() and float(). Each line below is tried on its own. Which lines run without an error? Choose three. →
More onPython Basics › Operators and Expressions

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. A program splits a four-digit number into parts with // and %. What does the program print?Medium
  2. Bitwise operators work on the binary digits of whole numbers. Each line below combines 6 and 3, or…Hard
  3. One line of arithmetic, with no brackets at all, uses the remainder operator, a product, floor…Easy
  4. A program uses the bitwise operators on two small whole numbers. What does the program print?Hard
  5. A student compares text, lists and numbers with the operators <, > and ==, and wants to know which…Advanced
All questions on this topic →

Problems on this topic

  1. A number has three digits, for example 472…Medium
  2. A student wrote these three formulas. Each one has a mistake in the brackets…Medium
  3. Work out each sum on paper, using the order of Python.Easy
  4. 5000 rupees is put in a bank at 6 percent a year, with the interest added every year…Hard
All problems on this topic →