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

Python Coding Ques

Uploaded by

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

Python Coding Ques

Uploaded by

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

🔢 Number-Based Programs

Check Prime Number

Check Palindrome Number

Check Armstrong Number

Find Factorial

Generate Fibonacci Series

Find GCD / HCF

Find LCM

Reverse a Number

Count digits in a number

Sum of digits

Swap two numbers (with & without third variable)

Check Perfect Number

Find largest of 3 numbers

Check Even or Odd

Power of a number (a^b)

🔤 String-Based Programs

Reverse a String

Check Palindrome String

Count vowels and consonants

Remove spaces from string

Count frequency of characters

Check Anagram

Convert lowercase to uppercase (without built-in)

Remove duplicate characters

Find longest word in a sentence

Check substring present or not

📊 Array-Based Programs

Find largest & smallest element

Find second largest element

Reverse an array
Sort array (Bubble / Selection sort)

Remove duplicates from array

Find missing number in array

Find frequency of elements

Merge two arrays

Find sum of array elements

Left rotate / Right rotate array

🔄 Pattern Programs (Very Common in TCS)

Star pyramid

Number pyramid

Floyd’s triangle

Inverted triangle

Diamond pattern

🧮 Basic Logic / Misc

Leap year check

ATM machine simulation

Simple calculator

Area of circle/triangle

Decimal to binary conversion

Binary to decimal

Matrix addition

Matrix multiplication

Transpose of matrix

Count words in a sentence

You might also like