<jupyter_start><jupyter_text>Write a Python program to print "Hello Python"<jupyter_code>print("Hello Python")<jupyter_output>Hello Python<jupyter_text>Write a Python program to do arithmetical operations addition and division<jupyter_code>#addition
def addition(x, y):
    return x+y
x = int(input("Enter x "))
y = int(input("Enter y "))
my_sum = addition(x, y)
print("Addition gives ", my_sum)
#division
def division(x, y):
    return x/y
x = float(input("Enter x "))
y = float(input("Enter y "))
my_division = division(x, y)
print("Division gives ", my_division)<jupyter_output>Enter x 45
Enter y 9
Division gives  5.0<jupyter_text>Write a Python program to find the area of a triangle<jupyter_code>def traingle_area(side_1, side_2, side_3):
    #semi perimeter
    s = (side_1 + side_2 + side_3) / 2.0
    
    #calculating area 
    area = (s*(s-side_1)*(s-side_2)*(s-side_3)) ** 0.5
    
    return area

side_1= float(input('Enter first side: '))
side_2 = float(input('Enter second side: '))
side_3 = float(input('Enter third side: '))

my_traingle_area = traingle_area(side_1, side_2, side_3)

print(f"Area of triangle is {my_traingle_area}")<jupyter_output>Enter first side: 10
Enter second side: 13
Enter third side: 12
Area of triangle is 56.99506557588999<jupyter_text>Write a Python program to swap two variables<jupyter_code>a = int(input("Enter First Number "))
b = int(input("Enter Second Number "))
c=a
a=b
b=c

print(f"The First number now is {a} and Second number now is {b}")<jupyter_output>Enter First Number 10
Enter Second Number 5
The First number now is 5 and Second number now is 10<jupyter_text>Write a Python program to generate a random number<jupyter_code>import random
random.seed(42)  # seed value makes sure that everytime for this seed 
                 # value you will get same random value.

print(f"Our random number is {random.random()}")<jupyter_output>Our random number is 0.6394267984578837
{'fraction_non_alphanumeric': 0.10817805383022774, 'fraction_numerical': 0.03674948240165631, 'mean_word_length': 5.097791798107256, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '108164', 'license': 'MIT', 'n_tokens_mistral': 719, 'n_tokens_neox': 671, 'n_words': 210, 'path': 'Assignment-1.ipynb', 'repo_name': 'rashutyagi/IN_Assignments', 'size': '1932'}