0% found this document useful (0 votes)
4 views2 pages

50 Python Questions No Functions

The document contains a list of 50 beginner-level Python coding questions that focus on basic programming concepts without using functions. The questions cover a variety of topics including loops, conditionals, string manipulation, and mathematical operations. Each question is designed to help beginners practice their coding skills in Python.

Uploaded by

Charishma Reddy
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)
4 views2 pages

50 Python Questions No Functions

The document contains a list of 50 beginner-level Python coding questions that focus on basic programming concepts without using functions. The questions cover a variety of topics including loops, conditionals, string manipulation, and mathematical operations. Each question is designed to help beginners practice their coding skills in Python.

Uploaded by

Charishma Reddy
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

50 Python Beginner Coding Questions (Without Functions)

1. Read a number and check if it is even or odd using if-else.

2. Read two numbers and print the larger one using if.

3. Read a number and print the sum of its digits using loops.

4. Read a number and print its reverse using only loops and math.

5. Read a number and check if it is prime using only loops and if.

6. Print numbers from 1 to N using a for loop.

7. Read a number and print its multiplication table up to 10 using loops.

8. Check if a number is a palindrome using if and loop (no string functions).

9. Count the digits in a number using loop (no len).

10. Check if a number is positive, negative, or zero using if.

11. Check if a number is divisible by both 3 and 5 using if.

12. Read a number and calculate its factorial using a for loop.

13. Count even and odd digits in a number using loop.

14. Read 3 numbers and print the smallest using if-else only.

15. Read a number N and print sum of numbers from 1 to N using loop.

16. Read a 3-digit number and check if it's an Armstrong number (no functions).

17. Read a number and sum all digits except first and last.

18. Read a string and count vowels using only loops and if (no function).

19. Print all even numbers from 1 to N using loop.

20. Check if a year is a leap year using conditions.

21. Swap two numbers without using a third variable or function.

22. Print ASCII value of a character using ord().

23. Convert Celsius to Fahrenheit using formula.

24. Convert total days to years, weeks, and days using math only.

25. Read a string and count words without using split().


26. Check if character is vowel or consonant using if-else.

27. Check if a number is a perfect square using loop.

28. Sum all even numbers in a list using for loop (no function).

29. Read a base and exponent, calculate power using loop.

30. Find largest number in a list using for loop only (no max()).

31. Find smallest number in a list using for loop only (no min()).

32. Count spaces in a string using for loop.

33. Replace vowels with * in a string using loop (no replace()).

34. Print square and cube of a number using formulas.

35. Check if number is a multiple of 10 using if.

36. Sum of all odd numbers from 1 to N using for loop.

37. Print Fibonacci series up to N terms using loop (no function).

38. Find GCD of two numbers using loop (no [Link]).

39. Find LCM of two numbers using loop (no [Link]).

40. Print all prime numbers from 1 to N using loop.

41. Check if a string is palindrome using index comparison (no function).

42. Capitalize first letter of each word in string using loop only.

43. Remove digits from a string using for loop.

44. Count lowercase, uppercase, and digits using loop (no islower, etc).

45. Sort list in descending order using loop only (no sort or reverse).

46. Reverse a list using for loop (no reverse()).

47. Find second largest number in list using loop only.

48. Print only unique elements in list using loop (no set).

49. Count frequency of characters using nested loop.

50. Remove duplicates from list using loop (no set or dict).

You might also like