Skip to main content

Command Palette

Search for a command to run...

Test: Understanding of basic Python concepts through simple coding tasks

Published
•1 min read•View as Markdown
Test:  Understanding of basic Python concepts through simple coding tasks
A
I co-founded🫆digizen (fighting internet chaos 🧠), building an AI app to tackle misinformation, and running ideaGeek to turn “I have an idea” into real startups. I also share tech + travel on YouTube (TechNomad & Rz Omar). I touch grass too 🌱… but mostly to debug life 💻

🔹 Section 1: Variables, Output, Input

Q1. Create and Display

  • Create a variable called name and assign your name to it.

  • Print: Hello, [name]!


Q2. Simple Calculator

  • Ask the user for two numbers.

  • Add them and print the result.


🔹 Section 2: if Conditions

Q3. Voting Eligibility

  • Ask the user for their age.

  • If age >= 18, print “Eligible to vote.”

  • Otherwise, print “Not eligible.”


Q4. Maximum Finder

  • Ask the user to enter two numbers.

  • Print the greater number.


🔹 Section 3: for Loop

Q5. Print Numbers 1 to 5

  • Use a for loop to print numbers from 1 to 5.

Q6. Sum of First 10 Numbers

  • Use a for loop to find the sum of numbers 1 to 10.

🔹 Section 4: while Loop

Q7. Password Check

  • Ask the user to enter a password until they type "python123".

Q8. Counter

  • Ask the user to enter a number.

  • Count down to 0 using a while loop.


Python

Part 5 of 10

I break down Python basics with clear explanations and practical exercises. Whether you're a beginner or looking to refresh your skills, follow along to strengthen your Python fundamentals through hands-on practice. Let's code and grow together!

Up next

Python Exercise: Lists, Sets, and Tuples (Beginner Friendly)

List Exercises: Create and Access List Create a list called fruits containing "apple", "banana", "cherry", and "date". Print the second item in the list. Change the third item to "blueberry" and print the updated list. List Operations Given t...

More from this blog

T

TechNomad

46 posts

TechNomad is mostly coding exercises, not long boring explanations 😌. I share what I teach and learn through hands-on problems—mainly for my students, but anyone can jump in. If you learn by doing (and breaking things), you’ll fit right in. Less theory, more “try this and see what happens.”