Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
Problems
/
Python Basics
/
Getting Started with Python
Getting Started with Python
Python Programming
+ Upload a Problem
More in Python Basics
Getting Started with Python
Variables and Data Types
Operators and Expressions
Input and Output
Strings
Conditionals: if, elif, else
Loops
Lists
Functions
Mini Projects
All Levels
Middle Stage (6–8)
High School (9–10)
High School (11–12)
Undergraduate
General
All
Easy
Medium
Sort
Mixed
Newest first
Oldest first
A to Z
28 problems
Type:
Any
Conceptual
Python-Coded
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 Python
StemPy 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 Python
StemPy 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 Python
StemPy 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 Python
StemPy 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 Python
StemPy 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 Output
StemPy 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 Python
StemPy 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 Python
StemPy 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 Python
StemPy 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 Python
StemPy 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 Python
StemPy 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 Python
StemPy 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 Python
StemPy 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 Python
StemPy 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 Python
StemPy 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 Python
StemPy 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 Output
StemPy 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 Output
StemPy 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 Python
StemPy 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 Output
StemPy 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 Output
StemPy 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 Output
StemPy 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 Python
StemPy 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 Output
StemPy 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 Output
StemPy Lab
Easy
←
Previous
Page 1 of 2
1
2
Next
→
Showing 1–25 of 28