Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
15 views1 page

gr8 Programming Worksheet

The document is a worksheet for Athenia High School's VIII standard students for the 2023-24 session, focusing on Python programming exercises. It includes various questions related to list manipulation, string operations, and writing programs for summation, factorial, and pattern printing. Students are required to practice and find answers to the provided programming tasks.

Uploaded by

tyagishreya71
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)
15 views1 page

gr8 Programming Worksheet

The document is a worksheet for Athenia High School's VIII standard students for the 2023-24 session, focusing on Python programming exercises. It includes various questions related to list manipulation, string operations, and writing programs for summation, factorial, and pattern printing. Students are required to practice and find answers to the provided programming tasks.

Uploaded by

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

Athenia High School, Saharanpur

Worksheet Session – 2023-24

Name - ………………………………………… Date: …………………… Std.: VIII

Some Python programming questions, find answers and do practice with system.

Q1. list1=[10,12,18,88,18,187,16,14] Q2. str=”Athenia High School”


list1[1]=55 print(len(str))
print( list1[ : : -1 ] ) print(‘hello”.capitalize)
print( list1[ -3: : -1 ] ) print(str.count(l))
print( list1[ : : ] ) print(str.lower())
print( list1[ : : 2 ] ) print(str[1:10])
print( list1[ 1 :8 : 2] ) print(str[::-1])
list1[4]=24 print(str[3: 10:2])
print( list1[0 : : 3])

Q3. Q4. a. WAP to print sum of 10-numbers.


list1=[10,12,18,88,18,187,16,14] ex: 1+2+3…….+10=55
list2=[15,19,18,22,18,187,16] b. WAP to print factorial of a no. : ex:
print(len(list1)) 5*4*3*2*1=120
print(max(list1)) c. WAP to print table of 9 in proper format
print(min(list2)) 9*1=9
print(l1.insert(2,15)) ……..
print(l1.pop(2)) ……….
print(li.pop()) 9*10=90
print(l1.remove()) c. WAP to print following pattern:
print(l1.index(5)) 1
print(l1.sort()) 22
print(l2.reverse()) 333
print(l2.count(18)) 4444
print(l2.index(18)) 55555

1
12
123
1234
12345

$
$$
$$$
$$$$
$$$$$

You might also like