Cheat Code
Cheat Code
1.for rectangle
# Define the length and width of the
rectangle
length = float(input("Enter the length
of the rectangle: "))
width = float(input("Enter the width of
the rectangle: "))
2.for circle
import math
# Addition
result = x + y
print("Addition:", result)
x = 10
y=5
# Subtraction
result = x - y
print("Subtraction:", result) # Output:
5
x = 10
y=5
# Multiplication
result = x * y
print("Multiplication:", result) #
Output: 50
x = 10
y=5
# Division
result = x / y
print("Division:", result)
x = 10
y=5
z=2
# Combined operations
result = (x + y) * z / (x - z)
print("Combined Result:", result)