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 function prints a value with its own end, and returns another value. Two calls are the arguments of one print() with sep. What does the program print?
Python ProgrammingMediumHigh School (9–10)Python Basics › Input and OutputPCEP (Python Institute)
StemPy LabCreated by StemPy Lab

A function prints a value with its own end, and returns another value. Two calls are the arguments of one print() with sep. def tag(x): print(x, end="-") return x + 5 print(tag(1), tag(2), sep="|") What does the program print?

Log in to save
← All Quizzes
← A function asks a question with input() and a prompt. The user types 4 and presses Enter. Do not count the characters the user types. What text does the program itself write on the screen?Whole numbers can be written in binary, octal or hexadecimal, and with underscores. A student checks five statements about such literals. Which of these expressions are True? Choose every correct option. →
More onPython Basics › Input and Output

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. A function asks a question with input() and a prompt. The user types 4 and presses Enter. Do not…Medium
  2. The user types three numbers on one line, with a space between them: 4 2 9. The program cuts the…Medium
  3. A greeting program asks for a name and then for a number. The user types Ann, presses Enter, types…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 →