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

1ST Round Question Bank (Code Sprint)

The document outlines a list of 30 easy-level programming challenges for a Code Sprint 2025 event. Each challenge focuses on fundamental programming concepts such as arithmetic operations, string manipulation, and data structures. Participants are tasked with writing code to solve these problems using Python.

Uploaded by

sujaamoni916
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)
7 views2 pages

1ST Round Question Bank (Code Sprint)

The document outlines a list of 30 easy-level programming challenges for a Code Sprint 2025 event. Each challenge focuses on fundamental programming concepts such as arithmetic operations, string manipulation, and data structures. Participants are tasked with writing code to solve these problems using Python.

Uploaded by

sujaamoni916
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
You are on page 1/ 2

CODE SPRINT 2025

Easy Level (30 Questions)


1. Sum of Two Numbers
Write a program to take two numbers as input and print their sum.
2. Find the Largest of Three Numbers
Given three numbers, find the largest among them.
3. Check for Even or Odd Number
Write a function that checks whether a given number is even or odd.
4. Swap Two Variables Without Using a Third Variable
Swap two numbers using Python’s tuple unpacking method.
5. Reverse a String
Input a string and print its reverse.
6. Count Vowels in a String
Given a string, count and print the number of vowels present.
7. Check for Palindrome Number
A number is a palindrome if it reads the same forward and backward. Write a program to
check if a given number is a palindrome.
8. Factorial of a Number
Write a function to calculate the factorial of a given number.
9. Find the ASCII Value of a Character
Input a character and print its ASCII value.
10. Print First N Fibonacci Numbers
Print the first N Fibonacci numbers.
11. Find the Sum of Digits of a Number
Given an integer, find the sum of its digits.
12. Count the Number of Words in a String
Input a sentence and count the number of words in it.
13. Check if a String is a Palindrome
A string is a palindrome if it reads the same forward and backward. Write a program to check
this.
14. Convert Celsius to Fahrenheit
Given a temperature in Celsius, convert it to Fahrenheit.
15. Find the Smallest Element in a List
Input a list of numbers and print the smallest element.
16. Calculate Simple Interest
Write a program to calculate the simple interest given principal, rate, and time.
17. Find the Maximum of a List Without Using max()
Given a list, find the maximum element manually.
18. Check for Leap Year
Input a year and determine if it is a leap year.
19. Count the Occurrences of an Element in a List
Input a list and a number, count how many times the number appears.
20. Find the First Non-Repeating Character in a String
Given a string, find the first character that does not repeat.
21. Check if a Number is Prime
Input a number and determine if it is a prime number.
22. Reverse a List Without Using Reverse Function
Given a list, reverse it manually.
23. Print the Multiplication Table of a Number
Input a number and print its multiplication table up to 10.
24. Remove Duplicates from a List
Given a list with duplicate elements, return a new list without duplicates.
25. Find the GCD of Two Numbers
Calculate the greatest common divisor (GCD) of two numbers.
26. Find the Sum of a List Without Using sum()
Input a list and calculate its sum manually.
27. Check if a Given String Contains Only Digits
Input a string and check if it consists only of digits.
28. Convert a Decimal Number to Binary
Convert a given decimal number to its binary equivalent.
29. Find the Second Largest Number in a List
Input a list and find the second largest number.
30. HackerRank: Time Conversion
Convert 12-hour format time (AM/PM) to 24-hour format. HackerRank Link

You might also like