If statement in Python
Ask the user whether he is ready or not to learn Python. If the user is ready, print ‘Ok, here we go.’
Ask the user whether he is ready or not to learn Python. If the user is ready, print ‘Ok, here we go.’
Write a function that takes four numbers as its parameters and returns the average of those four numbers. https://youtube.com/shorts/yHRsvOIGB08?feature=share
Take name, roll number and field of interest from user as inputs and print in the below format: Hey, my name is [name] and my roll number is [roll number]. My field of interest is [interest]. https://youtu.be/i3LfruKfybc
Write a program to print the following output using only one print function. Hello Friends How are you? Learning Python is so Fun!!
Length = 10 Breadth = 20 Write a program to print area and perimeter of a rectangle. Area = Length X Breadth Perimeter = 2 X (Length + Breadth)
Find the data type of the following: name = “John” age = 21 score = 124.50 married = True
first number = 7 second number = 2 Use whole number division to divide the first number by the second and also work out the remainder and display the answer in a user-friendly way (“7 divided by 2 is 3 with 1 remaining”).
Calculate 2 raise to the power of 3.
Divide 9 by 6 and return an integer (floor value if not perfectly divisible).
Store a value of 25 in a variable myAge. Add 1 to the variable myAge. Print the updated value of the variable myAge.