#Return values are values that are printed from a function and output parameters
import math
x = int(input())
print(math.sqrt(x))
5.0
firstnum = 1
secondnum = 2
thirdnum = 3
fourthnum = 4
print(firstnum)
def generate_multiplication_table(number, limit):
print(f"Multiplication Table for {number} (Up to {limit}):\n")
for i in range(1, limit + 1):
result = number * i
print(f"{number} x {i} = {result}")
# Usage
generate_multiplication_table(5, 10)
Multiplication Table for 5 (Up to 10):
5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50
#Classes
class MyClass:
def __init__(self, attribute1, attribute2):
self.attribute1 = attribute1
self.attribute2 = attribute2
class MyClass:
def my_method(self):
# method body
pass
class MyClass:
def __init__(self, attribute1, attribute2):
self.attribute1 = attribute1
self.attribute2 = attribute2
class MyClass:
def my_method(self):
print(self.attribute1)
#homework
def summing_machine(first_number, second_number):
total = first_number + second_number
return total
result = summing_machine(7, 5)
print(f"The sum of 7 and 5 is: {result}")