Python BASIC QS

Sharpen your logic. One challenge at a time.

Level 1: The Basics

Initiate
1.1 Hello User
Ask for the user's name and favorite color using input(). Print a personalized greeting including both.
1.2 Simple Calculator
Take two numbers from the user and print their Sum, Difference, and Power (ab).

Level 2: Control & Loops

Novice
2.1 FizzBuzz Pro
Print numbers 1-50. "Fizz" for multiples of 3, "Buzz" for 5, and "FizzBuzz" for both.
2.2 Guess the Number
Hardcode a number (e.g., 7). Ask user to guess until they find it.

Level 3: Expert Realm

Master
3.1 Prime Detector
Write a function that takes a number and returns True if it is a Prime number, False otherwise.
3.2 Smart ATM (OOP)
Create a Class ATM with balance. Include withdraw() that checks if balance is sufficient before deducting.