300 Problems
300 Problems
Problem Statement
Expected Result:
Number Square
1 1
2 4
3 9
4 16
5 25
Problem Statement
Write A Python Program to get 6 subject marks from the user and calculate total and average of that
marks. And display to user.
Problem Statement
Write A Python Program To Add Number From List That Are Greater Than 5 And Less Than 10
Problem Statement
Write A Python Program To Display All The Student Name Except With Start ‘f' Char
Problem Statement
Write A Python Program To Sort Student Name In Ascending Order In List And Student Should Display
Which Contain Only 5 Character
Content from 11 Problem and Solution with Algorithm.pptx:
Problem Statement
Write A Python Program To Get 2 Number From The User And Display Maximum Number
Problem Statement
* *
***
****
*****
Problem Statement
Write Python Program To Get Password From User And Make Sure That Password Should Contain
Number And Alphabetic
Problem Statement
Write A Program To Get 6 Number In The List And Sum That Number
Problem Statement
Write A Program To Get 6 Number In The List And Display All Number And Then Clear List And Then
Display
Problem Statement
Problem Statement
Write a Python program to show a message in this format using print function.
B C
D E F
G H I J
K L M
N O
Problem Statement
Write A Python Program to store name, address, contact in dictionary, and then update his/her contact
number
Write A Python Program To Get 3 Number From User And Put In The Following Equation:
a+b+ca/b(2a + 3b)
Problem Statement
Write A Python Program To Calculate The Area Of Circle Using Formula Πr2
Problem Statement
Write A Python Program To Get 5 Number From User In Array And Sum All Number And Display
Problem Statement
Write a Python Program to get 5 number from user in array, find the maximum number
Problem Statement
Problem Statement
Write a Python program get name of week and show “Holiday” if user input Sunday
Problem Statement
Write A Python Program To Get Two Number And Operator From The User To Perform Arithmetic
Operation
Content from 25 Problem and Solution with Algorith.pptx:
Problem Statement
Write A Python Program To Get Student Marks , If Marks Is Less Than 40, It Display “Fail” Otherwise
“Pass”.
Problem Statement
Problem Statement
Problem Statement
Write A Python Program To Get A Number From User To Find Square Of That Number
Problem Statement
Problem Statement
Write A Program To Get Name And Age From The User And Display Name And Age On The Screen In This
Format:
Problem Statement
Write A Python Program To Get A Number From User To Check, It Is Divisible By 2 And 3
Problem Statement
Problem Statement
Write A Python Program To Get Two Number From The User , Pass To Function And Find Maximum
Problem Statement
Write A Python Program To Store Name of the color, In The List, And Count That Color And Display
Result to User
Problem Statement
Write A Python Program To Get 5 Color name From The User In List, Display That List, Remove Last Color
And Then Display All The Colors to User
Content from 35 Problem and Solution with Algorithm.pptx:
Problem Statement
Write A Python Program To Get 10 Name Of The Students From The User In A List, Display That Students
Name In Descending Order
Problem Statement
Write A Python Program To Get A Sentence Form The User, And Make It Capitalize
Problem Statement
Write A Python Program To Get A Number From The User To Find The Cube Of That Number
Problem Statement
Problem Statement
Write A Python Program To Get 5 Number In The List, Pass That List In The Function To Multiply And Add
That Number And Display Total Result.
Problem Statement
Write A Python Program To Take Age From The User To Check Whether User Able To Participate In
Voting Or Not. If Age Is Less Than 18 Then It Don’t Allow To Participation. And Show, After How Much
Year A Person Will Be Able To Participate:
Sorry! You cannot participate in voting, you will be able to participate after 8 year
Problem Statement
Write Python Program To Get A Username From The User That Should Have Alphanumeric Characters,
Then Pass That Username To Function As Parameter, To Display That Username
Problem Statement
Write A Python Program To Get a Angle From The User And Find Its Sin And Cos Value In Radian
Problem Statement
Write A Python Program To Generate 1 To 10 Number With Their Square And Cube And Also Display
Their Addition (Square + Cube)
Expected result:
1 1 1 1
2 4 8 12
3 9 27 36
Write A Python Program To Get Starting Number And Ending Number From The User To Display That
Number With Proper Sequence
As, User Input 5 As Starting Number And 10 As A Ending Number, Then It Should Display
5, 6, 7, 8, 9,10
Problem Statement
Write A Python Program To Get Large Number As Starting And Lower Number As Ending Number,
Display That Number From Large To Lower.
As User Input 10 As Large Number And 5 As Lower Number, Then It Should Display As:
10,9,8,7,6,5
Problem Statement
Write A Python Program To Display Number From 1 To 30, Only Odd Number
Problem Statement
Write A Python Program To Get 5 Subject Marks, Store Them Into Array, And Also Get Student Name.
Find Total And Display Each Subjects Marks.
Expected result:
Hi username!
Your marks is ……
See your all subject marks
English = …
AI = …
Physics = …
Computer = …
Math= …
Problem Statement
Write A Python Program To Get 2 Number From The User, Find Their Square, And Add Both Result,
Finally Result Display To User.
Problem Statement
Write A Python Program To Get 2 Number From The User Store In Variable, Swap That Number And
Then Display The New Value Of Both.
Problem Statement
Write A Python Program To Get Hours And Then Convert Hours To Second
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Write A Python Program To Get A Sentence From The User, To Reverse That Sentence
Problem Statement
Write A Python Program To Get Age From The User In Year, And Convert Age In To Seconds
Problem Statement
Write A Python Program To Get A Number From The User To Find Factorial Of That Number
Problem Statement
Write A Python Program To Show the current date on the user request.
Problem Statement
Problem Statement
Problem Statement
Write A Python Program To get first and last name from the user and display full name.
Problem Statement
Write A Python Program To Get A Bio From A User And Count Number Of Character And Word In Bio
Description
Problem Statement
A = {3,2,4,5,6,7,8} B = {4,12,5,1,6,8}
Problem Statement
Write A Python Program To Get 5 Author Name With Their Book Name And Display Last Author With It's
Book Name
Problem Statement
Problem Statement
Write A Python Program To Get Different Information Of Students From User And Display All The
Student Information In This Order.
Name ---------
CNIC ---------
Age ---------
Contact ---------
Problem Statement
Write A Python Program To Find Maximum Number From A List Using Function
Problem Statement
Write A Python Program To Find Scholarship For Students In Admission In A College On The Basis Of
Student Marks.
Criteria To Follow
Problem Statement
Write A Python Program To Find Area And Perimeter Of A Square Using Function
(A = L2, P = 4a)
Content from 66 Problem and Solution with Algorithm .pptx:
Problem Statement
Write A Python Program To Create A List To Pass To Function As Parameter To Display Its Element In
Reverse Order.
Problem Statement
Write A Python Program To Find Sum Of Two Number (That Number Should Be Positive And Less Than
50)
Problem Statement
Write A Python Program That Accepts Six Identity Numbers Of Students As Input And Display In
Descending Order.
Problem Statement
Write A Python Program To Create A File And Write User Name, And Age In That File
Problem Statement
A = {5,2,4,6,7,1} B = {5,3,11}
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Write A Python Program To Get A Sentence From User, To Display Last Character Of That Sentence AND
Also Display All The Characters One By One.
Problem Statement
Write A Python Program To Find The Second Position Of A Student In A List. And Display Marks
Problem Statement
Problem Statement
Write A Python Program Which Display Numbers That Are Divisible By 3 From A List
Problem Statement
Write A Python Program To Check If The First And Last Number Of A Tuple Is The Same Or Not
Content from 78 Problem and Solution with Algorithm.pptx:
Problem Statement
Write A Python Program To Get A Number To Return Its Next And Previous Number
Problem Statement
Write A Python Program To Print First And Last Characters From A String
Problem Statement
A = {1,12,2,6,7,8} B = {15,0,1,3,6}
Problem Statement
Write A Python Program To Print Characters From A String That Are Present At An Odd Index Number
Problem Statement
Write A Python Program To Find Sum Of 1st Number And The Last Number From A List
Problem Statement
Write a Python Program To Append Those Number That Are Divisible By 5 And 7 From a Range (10, 100)
To A New Created List.
Problem Statement
Write A Python Program To Get Name From A List, That Start From ‘f'
Problem Statement
Write A Python Program To Get Name From User, To Check It Is In Uppercase Or Not, If Not Upper Then
Convert Into Uppercase
Problem Statement
Write A Python Program To Get Name From A List, That Ends At ‘n'
Problem Statement
Write A Python Program To Search Any Character (or Set of Character) From a String.
Problem Statement
Write A Python Program To Get A Sentence From User, The System Should Display Only Ten Character
Maximum
Problem Statement
Write A Python Program To Get A Number From User, The System Should Add Auto Increment To That
Number. Half Of User Entered Number Should Be Incremented
Problem Statement
Write A Python Program To Generate Number From 0 To 20 Only Even Number And Generate 0 To 20
Odd Number. Add Both Generated Number To Each Other To Display Total Result
Content from 9 Problem and Solution with Algorithm.pptx:
Problem Statement
Write A Python Program To Get Number From The User, And Display Table For That Number.
Problem Statement
Write A Python Program To Get Age Of 10 Students From User And Store In A List. Condition Is That,
System Should Display Age That Greater Than 14 Year And Less Than 20 Year
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Write Python Program To Find Force Of A Man On A Object Which Have Mass And Acceleration. Get
Mass And Acceleration From User
Formula:
F = ma
Write Python Program To Get Number From User To Display Table In Reverse Order
Example:
2 * 10 = 20
2 * 09 = 18
And so on
Problem Statement
Write A Python Program To Get 10 Data Item From User, How Much Integer, Float And String Type Of
Data Is Stored In A List
Problem Statement
Problem Statement
Problem Statement
Write A Python Program To Get Only Uppercase Words From User To Store in A List
Intermediate
Content from 1 Intermediate Problem and Solution.pptx:
Problem Statement
Write A Python Program To Get Any File With Extension, To Display Only That File Extension.
Content from 10 Intermediate Problem and Solution.pptx:
Problem Statement
Problem Statement
Write a Python Program to create a list on run time, display list element, and also find max and min item
from list of integers using OOP.
Problem Statement
Write a Python Program to find addition of list element to create a new list. Add element of list as 1st
and 2nd, 2nd and 3rd, 3rd and 4th …
Problem Statement
Problem Statement
Write a Python program to find most occurring element in a given list of numbers.
Problem Statement
Problem Statement
Write a Python program to create a class of student having two data member (name and id) having a
two methods, one is used to get name and id and other is to display name and id to user.
Content from 15 Intermediate Problem and Solution.pptx:
Problem Statement
Write a Python program to get a number from user to display square of its previous number and next
number.
Problem Statement
Problem Statement
Write a Python Program To Get a word from user. The word should contain lower and uppercase both.
Then convert lower to upper and upper to lower.
Problem Statement
Problem Statement
Write a Python program to create a nested list and access nested list item.
Problem Statement
Write A Python Program To Get Temperature In Fahrenheit, To Convert Into Centigrade And Kelvin
Problem Statement
Write a Python program to access multiple elements from a list.
Problem Statement
Write a Python program to get 5 number from user to store in a list. Display all the numbers with power
of 3 using list comprehension.
Problem Statement
Problem Statement
Write a Python program to print a dictionary items line by line. Key and value should have one tab
distance.
Problem Statement
Write a Python program to filter odd numbers from a given dictionary keys. Display only those values
which have odd keys.
Problem Statement
Write a Python program to get the total length of all keys of a dictionary with string keys.
Problem Statement
Write a Python program to convert dictionary’s keys and values into two list. One list should store keys
and other list should store values.
Content from 27 Intermediate Problem and Solution.pptx:
Problem Statement
Problem Statement
Write a Python Program to find a maximum key in a dictionary (having key with number data type)
Problem Statement
Problem Statement
Problem Statement
Write a Python Program to Create a Dictionary to find addition of all the keys and Product of all the
values from a dictionary.
Problem Statement
Write a Python Program to Create a dictionary which display those value which have vowel character.
Problem Statement
Problem Statement
Write a Python Numpy Program to Create a array of zero. According to user entered number.
Problem Statement
Write a Python OOP program to get a number from user to display its table.
Problem Statement
Problem Statement
Write a Python NumPy program to make an array of equal shape having same data type of a given array.
Problem Statement
Write a NumPy program to create a new array of given shape (4,3) and type, filled with zeros.
Problem Statement
Write a NumPy program to create one-dimensional array, getting number element from user using for
loop.
Problem Statement
Write a Numpy Program To Create a Two-dimensional Array & Multiply with any number to that array
elements. That number take from user.
Content from 4 Intermediate Problem and Solution.pptx:
Problem Statement
Write A Python Program To Get Password From The User That Contain Alpha Numeric And More Than 8
And Less Than 20 Characters
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Write a Python Numpy program to create a array, store in a text file and display the result.
Problem Statement
Write a Python Numpy program to create a 4x4 zero matrix with elements on the main diagonal equal to
6, 7, 8, 9.
Problem Statement
Write Python Program to make use of isidentifier method with string
Problem Statement
Write a Python Program Create dictionary from existed dictionary which display length of words as value
Problem Statement
Write a Python Program to Create a dictionary from list that display its square as value.
Problem Statement
Write a Python Program to Create list from existed list that count number less than 20 greater than 5
Problem Statement
Write a Python Program to Create a list from existed list that contain uppercase words
Problem Statement
Write A Python Program To Store Students Records, User Will Be Able To Delete Any Student From A
Record On Run Time
Problem Statement
Write a Python Program to Create set that display only even number
Problem Statement
Write a NumPy program to create a three dimension array with shape (3,4,4) and set to a variable
Problem Statement
Problem Statement
Problem Statement
Write a Numpy program to perform addition, subtraction, division and multiplication on Array Element.
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Write a Python Program to display only those number that are divisible by 4 or 5 from list, using list
comprehension.
Problem Statement
Problem Statement
Write a Python program to convert array float data type to integer data type.
Problem Statement
Write a Python Program to Create a excel file using python using xlswriter library
Problem Statement
Problem Statement
Write a Python Program to write data to excel cell using python xlsxwriter.
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Write a Python Program to find maximum and minimum number from a excel file
Problem Statement
Write a Python Program to Display positive and negative in a list. When there is Positive and Negative
number. Using list comprehension.
Problem Statement
Problem Statement
Write A Python Program To Get A Email From The User And Make Sure That It Is Email In Proper Format
Having @ Symbol And .
Problem Statement
Write a Python program to read a CSV file as a list
Problem Statement
Write a Python program to multiply with every number with user entered number in a list
Problem Statement
Problem Statement
Write a Python Program to get 10 number from user to store in a list. Make one number of all 10
number.
Problem Statement
Problem Statement
Problem Statement
Create a Desktop Python program to create a window and set its title
Problem Statement
Create a Desktop Python program to create a window and Insert some text to window
Problem Statement
Problem Statement
Problem Statement
Create a Desktop Python program to create a window and set geometry that should be fixed. And
Disable resize functionality
Problem Statement
Create a Desktop Python Program to insert a Button in Window. When click on that button a function
should run
Problem Statement
Create a Desktop Python Program to insert a Button in Window. Window should be close when user
click on the button.
Content from 83 Intermediate Problem and Solution.pptx:
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Write a Desktop Python program to get first and last name from user to display full name to user.
Problem Statement
Write a Desktop Python program to get two number from user to display their reminder after division.
Problem Statement
Write a Desktop Python program to get a character from user to check whether it is vowel or not.
Problem Statement
Write a Python program to get a string from user which contain number at starting and ending position.
Problem Statement
Write a Desktop Python program to get a year from user to check it is leap year or not.
Problem Statement
Problem Statement
Write a Python Program to count any array element from existed array.
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Write a Python Program to find maximum number from array.
Problem Statement
Write a Python Program to get a number from user to check whether it is divisible by 5 or not using
OOP.
Problem Statement
Write a Python Program to get a number from user to check whether it is multiple of 2 and 3 or not
using OOP.
Problem Statement
Complex
Content from 1 Complex Problem and Solution.pptx:
Problem Statement
Problem Statement
Write a Pandas program to perform basic arithmetic operations on two pandas series
Problem Statement
Write a Desktop Application in Python To Get A Username From The User That Should Have
Alphanumeric Characters
Content from 101 Complex Problem and Solution.pptx:
Problem Statement
Write A Desktop Application To Get A String From User To Save In Text File.
Problem Statement
Create a web application in python to create a database table for student to store student information.
Problem Statement
Create a web application in python to create a super user and view the admin area
Problem Statement
Write a Python Program to get 5 number from user, store in a list, convert to pandas series to change
their default index numbers to alpha.
Problem Statement
Create a web application in python to display website different web page like home, contact us, about
us etc
Problem Statement
Problem Statement
Problem Statement
Write a Python program to get 3 color code and color name from user to store in a dictionary and
convert it into Python Pandas Series.
Problem Statement
Problem Statement
Write A Python Program To Get File Name From User Without Space
Problem Statement
Write A Python Program To Get A Paragraph From User, To Find(total Char, without space total char,
Total Words And Spaces)
Problem Statement
Problem Statement
Create a web application in python that get 10 product price and display total bill with discount in
percentage functionality
Problem Statement
Create a Python Program to Count total number of Uppercase and Lowercase in a string.
Problem Statement
Problem Statement
Problem Statement
Write A Python Program to Generate a Strong Password, Length should be provided from user.
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Write a Python program to load csv file using pandas and print the shape of the csv file and display data
in the form of string.
Problem Statement
Write A Python Program To Generate Random Number , And Display Message If Required Number
Matched. Required Number Will Be Taken From User
Problem Statement
Create a Web Application to Get a sentence from user to convert into uppercase. And also display length
of sentence, total spaces to user.
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Write a Python Program to get a alpha character from user to check whether it is in given range or not:
range(a to f)
Content from 35 Complex Problem and Solution.pptx:
Problem Statement
Write a Python program to get a string from user that have starting char f and ending char z (zero, one
or many z).
Problem Statement
Write a Python Program To Get a Sentence From User And Also Get a Char Or Set Of Char To Check At
Last Of Sentence.
Problem Statement
Write a Python program to find the sequences of UPPERCASE and lowercase letters. Lowercase should
be at end.
Problem Statement
Write a Python program that find a string which have ‘m' char then anything (optional) and end at ‘0'.
Problem Statement
Write a Python program to check a to z, A- Z, 0 to 9 and _ from a user entered string at starting position.
Problem Statement
Problem Statement
Problem Statement
Write a Python program which match a string that contains uppercase, lowercase char, numbers, and
underscores. It Ignore white space, punctuation etc
Problem Statement
Write a Python program where a string will start with a specific number.
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Write a regular expression Program in Python to search following pattern inside a string:
anything(optional)Number_Uppercase
Problem Statement
Problem Statement
Problem Statement
Write A Python Program To Find Union , Intersection And Difference Of Two Set
Problem Statement
Problem Statement
Write a Python Program to play a wav file in python using pydub library
Problem Statement
Problem Statement
Write a Python Program to extract the html from the page.
Problem Statement
Write a Python Program to display title of any web page using web scraping.
Problem Statement
Problem Statement
Problem Statement
Write a Python Program to Read content from one file and write it into another file.
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Problem Statement
Write a Web application in Python to find union and intersection of two set.
A = {3,2,4,5,6,7,8} B = {4,12,5,1,6,8}
Problem Statement
Write A Web application in Python To Take Age From The User To Check Whether User Able To
Participate In Voting Or Not.
And Show, After How Much Year a Person Will Be Able To Participate
Problem Statement
Write A Web application in Python To Calculate The Area Of Circle Using Formula Πr2.
Problem Statement
Write A Web Application in Python To Get Name From User To Convert Into Encryption Form
Problem Statement
Write a Python Program to get a word from user that not contain any vowel char. That specific word
should be save into a file.
Content from 66 Complex Problem and Solution.pptx:
Problem Statement
Write a Python Program to create a list in which user perform different operations, user press number
and it should work.
Problem Statement
Write a Python Program to Get a string from user to find a sequence of number having 5 length or more.
Problem Statement
Write A Python Program To Get a number from user and display table of that number in a file. And find
product of all result that come from table.
Problem Statement
Write a Python Program To get 10 number from user to store in a list and find sum, product, min, max,
last and first from number.
Problem Statement
Problem Statement
Write a Python Program to take a string from user to search in a file
Problem Statement
Write A Web application in Python Program to get 6 subject marks from the user and calculate total and
average of that marks. And display to user.
Problem Statement
Write a Web Application in Python To Get 2 Number From The User, Find Their Square, And Add Both
Result, Finally Find Cube Of Result And Display To User.
Problem Statement
Write A Web application in Python To Get A Number From User, The System Should Add Auto Increment
To That Number. Half Of User Entered Number Should Be Incremented.
Problem Statement
Write a Web application in Python To Find Acceleration Of An Object Having Velocity (v) in (t) Time.
Display unit with Acceleration as m/s2
Problem Statement
Write Web application in Python To Find Force Of A Man On A Object Which Have Mass And
Acceleration. Get Mass And Acceleration From User. Display unit with Force as Newton.
Problem Statement
Write Web application in A Python To Add Number From List That Are Greater Than 5 And Less Than 10
Content from 77 Complex Problem and Solution.pptx:
Problem Statement
Write Web application in A Python Program To Display All The Student Name from 5, Except Start With
‘aa' Characters
Problem Statement
Write Web application in A Python To Sort Student Name In Ascending Order In List And Student Should
Display Which Contain Only 5 Character
Problem Statement
Write Web application in A Python To Get 3 Author Name With Their Book Name And Display All the
Author name with their book name.
Problem Statement
Create a web application to Get two number from user and perform all the arithmetic operations.
Problem Statement
Write a Web application in Python To Get Different Words from user, and Display Only Uppercase
Words to User
Problem Statement
Write A Desktop Application In Python To Get Two Number From The User, And Find Maximum /
Minimum Number. If Number are Equal, Then Display A Message Number Are Equal To Each Other
Content from 82 Complex Problem and Solution.pptx:
Problem Statement
Create a Desktop Application in Python to count total number of words in a string, spaces, characters
(with spaces) to user.
Problem Statement
Write a Desktop Application in Python to get a number from user to display table of that number
Problem Statement
Create a Desktop Application to display different types of message box in Yes/No mode.
Problem Statement
Problem Statement
Create a Desktop Application in a Python that displays a dialog box asking the user to enter an integer
and display its square in console
Problem Statement
Create a Desktop Application in Python that displays a dialog asking the user to enter his / her name and
age and display name with age in console.
Hi NAME! Your age is AGE
Problem Statement
Write a Desktop Application in Python to create a Listbox widget.
Problem Statement
Problem Statement
Write a Python Program To Get 5 Items From A List And Display Items To User But Not Included Last,
First Item And Odd Containing Length.
Problem Statement
Write Web application in A Python To Get A Number From The User To Find Factorial Of That Number
Problem Statement
Write A Desktop Application in Python To Get A Number From User To Check, Whether It Is Divisible By
2 And 3 or Not.
Problem Statement
Write A Desktop Application in Python To Get Marks Of Student To Find Its Grade
Problem Statement
Write A Desktop Application In Python To Generate 10 Number In Order To Display Their Square.
Problem Statement
Write A Desktop Application In Python To Get 5 Color Name From User And Store In The List And Display
Color Name With Their Total Characters.
Problem Statement
Write A Desktop Application To Get 5 Color name From The User In List, And Then Display All The Colors
to User Except Last and First Color
Problem Statement
Write A Desktop Application In Python To Get A String From User To Convert Into Lowercase, If Already
String In Lower Case Then Display A Message, “String Is Already In Lowercase”
Problem Statement
Write A Desktop Application In Python To Get 5 Number From User To Store In A List. Display Only Even
Number From List.
Problem Statement
Write A Desktop Application In Python To Get String From User To Check Whether It Contain Space Or
Not.
Content from 99 Complex Problem and Solution.pptx:
Problem Statement
Write A Desktop Application In Python To Get 5 Number From User To Store In List. Find Addition And
Product Of All That Number And Display Result To User.