HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClassesGroups

>_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 →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Classes
  • Groups

Practice

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

Community

  • Discussions
  • Resources
  • Notes
  • Blog

Account

  • Dashboard
  • My Content
  • Profile
  • Log in
© 2026 senLearn. All rights reserved.HelpAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /Python Basics
  3. /Getting Started with Python

Getting Started with Python

Python Programming
+ Upload a Problem
More in Python BasicsGetting Started with PythonVariables and Data TypesOperators and ExpressionsInput and OutputStringsConditionals: if, elif, elseLoopsListsFunctionsMini Projects
28 problems
Type:
1.
A student saves a program as my first program.py.txt, opens a terminal, types python my first…
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Medium
2.
Write the command that checks the version of Python in a terminal, for (a) Windows with the Python…
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Easy
3.
A student has an old laptop with Windows 7, 4 gigabytes of memory, and no internet at home.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Easy
4.
Write a program that prints a box of stars, 4 lines tall and 12 characters wide.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Medium
5.
Three programs are shown. For each one, name the kind of error that Python will show (NameError or…
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Easy
6.
Predict the output
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with Python, Input and OutputStemPy LabStemPy Lab
Easy
7.
In a terminal, a student types python hello.py and gets an error that the file cannot be found.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Medium
8.
Which tool would you suggest in each case?
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Medium
9.
The program below asks for an age. How do you give the answer (a) in a code box on this site, and…
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Medium
10.
Run a program that shows the version of Python that is running in the code box.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Easy
11.
Write a program that asks for your name and your city and shows a small card.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Easy
12.
A student writes a program in Notepad and saves it as hello.py.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Medium
13.
On Windows, a student types python --version and sees the message that python is not recognized.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Medium
14.
Which command checks the Python version on (a) Windows, (b) macOS, (c) Linux?
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Easy
15.
These steps for Windows are in the wrong order.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Easy
16.
Which of these can run Python from python.org without a problem?
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Easy
17.
How many lines does this program show, counting a blank line as a line?
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with Python, Input and OutputStemPy LabStemPy Lab
Medium
18.
Write a program that shows a poem of four lines, with a blank line between the two verses.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with Python, Input and OutputStemPy LabStemPy Lab
Medium
19.
Which lines are skipped by Python? How many lines does the program show?
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Easy
20.
Use sep to show 2026-10-11. Then use end so that Hello and world are on the same line.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with Python, Input and OutputStemPy LabStemPy Lab
Medium
21.
Make a name card. Three of the lines come first. Then a blank line. Then the school.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with Python, Input and OutputStemPy LabStemPy Lab
Medium
22.
Show the line 12 + 7 = 19. The answer must be worked out by Python.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with Python, Input and OutputStemPy LabStemPy Lab
Easy
23.
Each line has one mistake. Find it and write the correct line.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with PythonStemPy LabStemPy Lab
Medium
24.
Print a staircase with four steps. The first line has one star, the second has two, and so on.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with Python, Input and OutputStemPy LabStemPy Lab
Easy
25.
What does each line show?
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Getting Started with Python, Input and OutputStemPy LabStemPy Lab
Easy
Page 1 of 2

Showing 1–25 of 28