0% found this document useful (0 votes)
3 views3 pages

Python Question

The document outlines a series of Python logic practice questions designed to test programming skills. It includes tasks such as filtering even numbers, counting odd numbers, finding maximum and minimum values without built-in functions, and implementing string manipulations. Additional challenges involve creating a simple login system, calculating factorials, and simulating an ATM system.

Uploaded by

Odukoya Adeniyi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Python Question

The document outlines a series of Python logic practice questions designed to test programming skills. It includes tasks such as filtering even numbers, counting odd numbers, finding maximum and minimum values without built-in functions, and implementing string manipulations. Additional challenges involve creating a simple login system, calculating factorials, and simulating an ATM system.

Uploaded by

Odukoya Adeniyi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Python Logic Practice Question

1. Even Numbers Filter

Given a list of numbers, return only the even numbers.

2. Odd Numbers Counter

Count how many odd numbers are in a list.

3. Find Maximum (No max())

Find the largest number in a list without using max().

4. Find Minimum (No min())

Find the smallest number in a list without using min().

5. Reverse a String

Reverse a string without using slicing ([::-1]).

6. Palindrome Checker

Check if a word is a palindrome (same forward and backward).

7. Count Words in a Sentence

Take a sentence and count how many words it contains.

8. Sum of Digits

Find the sum of digits of a number (e.g. 245 → 11).

9. Remove Duplicates (No set)

Remove duplicates from a list without using set().

10. FizzBuzz Challenge

Print numbers 1–100:


●​ divisible by 3 → “Fizz”
●​ divisible by 5 → “Buzz”
●​ both → “FizzBuzz”

11. Vowel Counter

Count vowels in a sentence (a, e, i, o, u).

12. Consonant Counter

Count consonants in a string.

13. Second Largest Number

Find the second largest number in a list.

14. Frequency Counter

Count how many times each character appears in a string.

15. Simple Login System

Check username and password with fixed values.

16. Factorial Calculator

Calculate factorial of a number using a loop.

Example: 5! = 120

17. Prime Number Checker

Check if a number is prime.

18. Multiplication Table

Print multiplication table of any number (1–12).

19. ATM Simulation 💳


Create a system with:

●​ Check balance
●​ Deposit
●​ Withdraw
●​ Exit

You might also like