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. /A greeting program asks for a name and then for a number. The user types Ann, presses Enter, types 3 and presses Enter again. What is shown on the screen?
Python ProgrammingMediumHigh School (9–10)Python Basics › Input and OutputPCEP (Python Institute)
StemPy LabCreated by StemPy Lab

A greeting program asks for a name and then for a number. The user types Ann, presses Enter, types 3 and presses Enter again. name = input() n = int(input()) print(name[0] * n, name + str(n), sep=":") What is shown on the screen?

Log in to save
← All Quizzes
← One line of arithmetic, with no brackets at all, uses the remainder operator, a product, floor division and a sum. What does the program print?A program converts values with int(), str() and float() before it uses them. What does the program print? →
More onPython Basics › Input and Output

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. A function prints a value with its own end, and returns another value. Two calls are the arguments…Medium
  2. A function asks a question with input() and a prompt. The user types 4 and presses Enter. Do not…Medium
  3. The user types three numbers on one line, with a space between them: 4 2 9. The program cuts the…Medium
  4. A program reads two lines from the keyboard. The first line entered is 10 and the second line is…Hard
  5. A program calls print() three times with keyword arguments, and then once with nothing. What does…Hard
All questions on this topic →

Problems on this topic

  1. Write a program that asks for the length and the width of a rectangle in centimetres, as numbers…Medium
  2. A program asks two questions. The Input box has these two lines: India and then Pune…Easy
  3. A student wrote a program that asks for the price of an item…Medium
  4. Which function (int or float) would you use to read each value? …Medium
All problems on this topic →