0% found this document useful (0 votes)
80 views22 pages

Practical File Computer Science (Python) : By: Anubhav Chachra and Yash Gupta Class: Xi-A

This document contains 20 Python programs including programs to calculate x to the power of n, a basic calculator, simple interest calculation, string manipulation programs, pattern printing programs, factorial calculation, checking if a number is a palindrome, and validating a mobile number. It was created by Anubhav Chachra and Yash Gupta for their Class 11 computer science practical file. Each program is accompanied by its code and output.

Uploaded by

Anubhav Chachra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
0% found this document useful (0 votes)
80 views22 pages

Practical File Computer Science (Python) : By: Anubhav Chachra and Yash Gupta Class: Xi-A

This document contains 20 Python programs including programs to calculate x to the power of n, a basic calculator, simple interest calculation, string manipulation programs, pattern printing programs, factorial calculation, checking if a number is a palindrome, and validating a mobile number. It was created by Anubhav Chachra and Yash Gupta for their Class 11 computer science practical file. Each program is accompanied by its code and output.

Uploaded by

Anubhav Chachra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.

PRACTICAL FILE

COMPUTER SCIENCE
(PYTHON)

BY: ANUBHAV CHACHRA AND YASH


GUPTA
CLASS: XI-A
PROGRAMS
[Link] TO COMPUTE X^N OF GIVEN 2
INTEGERS X AND N.
CODE

OUTPUT
[Link] TO MAKE CALCULATER
CODE

OUTPUT
[Link] FOR CALCULATING SIMPLE
INTEREST
CODE

OUTPUT
[Link] TO TRANSFER THE IST LETTER TO
THE END AND “AY” TO IT
CODE

OUTPUT
[Link] TO REVERSE AND ENTERED
STRING

CODE

OUTPUT
[Link] AN ENTERED NO. AND CHECK
WHETHER IT IS PALINDROME

CODE

OUTPUT
[Link] TO CAPITALISE THE OCCURRENCE
OF A SPECIFIC LETTER IN AN ENTERED
STRING
CODE

OUTPUT
[Link] TO FIND INDEX OF ALL
OCCURENCES OF ‘I’ IN MISSISSIPPI
CODE

OUTPUT
[Link] TO FIND THE REVERSE INDEX OF A
CHARACTER IN A STRING
CODE

OUTPUT
[Link] TO PRINT FOLLOWING PATTER
12345
1234
123
12
1
CODE

OUTPUT
[Link] TO PRINT FOLLOWING PATTERN
1
12
123
1234
12345
CODE

OUTPUT
[Link] TO SUM THE FOLLOWING SERIES
1+1/2!+1/5!+- - - - - - - - +1/N!
CODE

OUTPUT
[Link] FACTORIAL OF A NUMBER
CODE

OUTPUT
[Link] TO COUNT NO. OF OCCURRENCES
IN STRING
CODE

OUTPUT
[Link] TO REVERSE AND ENTERED
NUMBER
CODE

OUTPUT
[Link] TO CHECK WHETHER TRIANGLE
IS RIGHT TRIANGLE
CODE

OUTPUT
[Link] TO CONVERT INTEGER TO
ROMAN NUMERAL

CODE

OUTPUT
[Link] TO DISPLAY FOLLOWING
PATTERN
PN

YO

TH

HT

OY

NP

CODE

OUTPUT
[Link] TO CHECK WHETHER MOBILE
NUMBER IS VALID
CODE

OUTPUT
[Link] TO PRINT 2ND LARGEST ELEMENT
OF LIST
CODE

OUTPUT

You might also like