0% found this document useful (1 vote)
100 views1 page

List of Python Codes

The document contains Python coding questions related to conditional statements, loops, functions, lists and other Python concepts. It also asks to create a PowerPoint presentation explaining the AI project cycle to solve a problem related to power failures or bank frauds. The output of all codes and a single color cover sheet with labels is required to be submitted.

Uploaded by

Avni Gupta
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 (1 vote)
100 views1 page

List of Python Codes

The document contains Python coding questions related to conditional statements, loops, functions, lists and other Python concepts. It also asks to create a PowerPoint presentation explaining the AI project cycle to solve a problem related to power failures or bank frauds. The output of all codes and a single color cover sheet with labels is required to be submitted.

Uploaded by

Avni Gupta
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/ 1

Class X

Topic : Python

Q1. Write the following python codes:


1. Check the following on the basis of temperature entered by the user:
If temp<15 – print “cold weather”
If temp is between 16- 35- print “pleasant weather”.
If temp >35 – print “hot weather”
2. Print the area of the shape that is entered by the user. Shapes can be circle, square or triangle.
3. Check whether a triangle is scalene, isosceles or equilateral
4. Check whether a triangle is a right angled triangle or not.
5. Check whether a number is a multiple of 3 or not. If it is a multiple print its next five consecutive
numbers else print its first five multiples.
6. Print ‘n’ multiples of ‘m’ using while loop.
7. Check whether an alphabet entered by user is a vowel or consonant. If it is a vowel print that
alphabet ‘n’ times.
8. Check whether a colour entered by user is a part of VIBGYOR or not.
9. Keep on printing a number till the number entered by user is a multiple of 5
10. Keep on adding elements to a list till the user says “yes” for entering elements. Print the list in the
end and the number of elements in the list.
11. Create a list of ‘n’ elements. Divide that list into two equal halves. Print the elements of the first half
using positive indexing and of second half using negative indexing. If the list has odd elements then
just print a message that it cannot be divided into two halves.
12. Create a list of 10 elements(including numbers and text). Print the element present at the position
specified by the user.
13. Make a pyramid of a character entered by the user of ‘n’ rows and also create a reverse pyramid of
same character and same number of rows.
14. Ask user whether even numbers are to be printed or odd. Accordingly print the numbers till the time
user keeps saying ‘yes’. (means if user says even then start printing from 2 and keep printing next
even number 4,6 and son on till the time user keeps saying yes)
15. Keep on accepting the value of length and breadth till the time user enters both same values. Print
the area of the rectangle for all the values.

Q2. Printout of a PowerPoint Presentation explaining complete steps of AI project cycle to solve the
problem of
Problem of Lot of power failure in a particular area
Or
Problem of bank frauds in a particular State

Printout of all the codes and their output should be present in the file.
No handwritten content should be there in the file.
File should be covered in a single colour sheet and should be well labelled (name, class, subject, board
roll no.)

You might also like