Slip 26 A)
Write an anonymous function to find area of square and rectangle
Answer :
areaSquare=lambda length : length * length
areaRect=lambda length,width : length * width
l=int(input("Enter Length Value to
calcualte area of Square: "))
print("Area of
Square:",areaSquare(l))
l=int(input("\n Enter Length Value to
calcualte area of Rectangle:"))
w=int(input("Enter Width Value to
calcualte area of Rectangle: "))
print("Area of
Rectangle:",areaRect(l,w))
Output :
Slip 26 B)
Write Python GUI program which accepts a sentence from the user and alters it
when a button is pressed. Every space should be replaced by *, case of all
alphabets should be reversed, digits are replaced by?.
Answer :
Output :
Savitribai Phule Pune University T.Y.B.B.A.(C.A.) Python Practical Slip 26 Answers
Reviewed by technical_saurabh
on
December 31, 2021
Rating:
No comments:
Post a Comment