info@itstudy.in
9988949699, 7087752296
Home
HKCL
Govt. Courses
HSCIT (3 Months)
HSCIT A (6 Months)
HSCIT A+ (1 Year)
Basic Computer
Photoshop
Coreldraw
Web Designing
Tally
Computer Networking
Computer Hardware
Office Assistance
ISO Courses
C++ Programming
C Programming
Full Stack Web Development
Python
PHP with WordPress
Node Js
Figma
Online Courses
HSCIT
HSCIT A
HSCIT A+
Tally
Photoshop
Coreldraw
Web Designing
Office Assistance
Computer Networking
Computer Hardware
FAQ
Basic Computer Course
Contact Us
Python Assignment Questions
Decison Making Statements
Check whether a person is eligible to vote or not.
Check whether a student has passed or failed (passing marks = 40).
Find the greater number between two numbers.
Check whether a number is positive, negative, or zero.
Check whether a number is even or odd.
Check whether a person is eligible for a driving license (age ≥ 18).
Check whether a number lies between 10 and 50.
Check whether a student is eligible for admission (marks ≥ 60 and age ≥ 17).
Check whether a customer gets a discount (purchase amount ≥ ₹2000).
Check whether a number is divisible by both 3 and 5.
Check whether a number is divisible by 3 or 5.
Check whether a user can log in using the correct username and password.
Check whether a person is a senior citizen (age ≥ 60).
Check whether a year is a leap year.
Check whether a day entered by the user is a weekend or a working day.
Check whether a student qualifies for a scholarship (marks > 85 and attendance > 75%).
Check whether a number is a three-digit number.
Check whether a person can enter a movie theater (age ≥ 18 or accompanied by a guardian).
Check whether a number is not equal to zero.
Check whether a person is eligible for a loan (salary ≥ ₹30,000 and age between 21 and 60).
Check whether a triangle is valid (sum of any two sides greater than the third side).
Check whether a character is a vowel or a consonant.
Check whether a user is eligible for free shipping (order value > ₹500).
Check whether a temperature indicates a hot day (> 35°C), normal day, or cold day (< 15°C).
Check whether a person is eligible for a sports competition (age between 15 and 25 and medically fit).
For Loop
Print all even numbers from 1 to 50.
Print all odd numbers from 1 to 50.
Print the multiplication table of a given number.
Find the sum of numbers from 1 to 100.
Find the sum of all even numbers from 1 to 100.
Find the sum of all odd numbers from 1 to 100.
Count how many numbers are divisible by 5 between 1 and 100.
Print the square of numbers from 1 to 20.
Print the cube of numbers from 1 to 10.
Calculate the factorial of a given number.
Reverse counting from a given number to 1.
Print all numbers divisible by both 3 and 5 between 1 and 100.
Count the number of digits in a given number.
Find the sum of digits of a given number.
Print each character of a string on a new line.
Count the number of vowels in a string.
Count the number of consonants in a string.
Find the frequency of a specific character in a string.
Find the largest number in a list.
Find the smallest number in a list.
Count positive, negative, and zero values in a list.
Remove duplicates from a list using a loop.
Strings
Basic String Assignments
Input a string and print it.
Find the length of a string.
Convert a string to uppercase.
Convert a string to lowercase.
Count the number of characters in a string.
Print the first character of a string.
Print the last character of a string.
Print the first 5 characters of a string.
Reverse a string.
Check whether a string is empty or not.
Searching & Counting
Count the number of vowels in a string.
Count the number of consonants in a string.
Count the number of spaces in a string.
Count the number of digits in a string.
Count the number of special characters in a string.
Find the frequency of a specific character.
Count how many times a word appears in a sentence.
Check whether a character exists in a string.
Find the position of a character in a string.
Find the position of a word in a sentence.
String Manipulation
Replace one character with another.
Replace a word in a sentence.
Remove all spaces from a string.
Remove leading and trailing spaces.
Concatenate two strings.
Repeat a string N times.
Split a sentence into words.
Join a list of words into a string.
Remove a specific character from a string.
Remove all vowels from a string.
String Comparison
Compare two strings and check if they are equal.
Check whether two strings are equal ignoring case.
Check whether a string starts with a given character or word.
Check whether a string ends with a given character or word.
Check whether a string contains a specific substring.
Palindrome & Patterns
Check whether a string is a palindrome.
Check whether a string reads the same forward and backward.
Print each character of a string on a new line.
Print characters at even indexes.
Print characters at odd indexes.
Intermediate Assignments
Count the number of words in a sentence.
Find the longest word in a sentence.
Find the shortest word in a sentence.
Capitalize the first letter of each word.
Swap the case of each character.
Remove duplicate characters from a string.
Check whether two strings are anagrams.
Find the most frequently occurring character.
Extract all numbers from a string.
Check whether a string contains only alphabets, only digits, or both.
Challenge Assignments
Create an email validator.
Create a password strength checker.
Convert a sentence into title case.
Count uppercase and lowercase letters separately.
Find all vowels and their positions in a string.
Find all occurrences of a substring.
Compress a string (
aaabbc
→
a3b2c1
).
Find the first non-repeating character.
Find the first repeating character.
Reverse the order of words in a sentence.