'F' → Fullscreen
input() to gather user input. int() and float(). # Activity 1.2 - Task 1# Getting user input
name = input("Enter your name: ")print("Welcome,", name)5 collapsed lines
# Activity 1.2 - Task 1# Getting user input
name = input("Enter your name: ")print("Welcome,", name)
# Task 2 - Input Strings and Numbers
tool = input("Enter the tool name: ")price = input("Enter the price: ")print("The", tool, "costs $", price)12 collapsed lines
# Activity 1.2 - Task 1# Getting user input
name = input("Enter your name: ")print("Welcome,", name)
# Task 2 - Input Strings and Numbers
tool = input("Enter the tool name: ")price = input("Enter the price: ")print("The", tool, "costs $", price)
# Task 3 - Convert numeric input
radius = float(input("Enter radius of the circle (cm): "))area = 3.1416 * radius ** 2print(f"Area = {area} cm^2")19 collapsed lines
# Activity 1.2 - Task 1# Getting user input
name = input("Enter your name: ")print("Welcome,", name)
# Task 2 - Input Strings and Numbers
tool = input("Enter the tool name: ")price = input("Enter the price: ")print("The", tool, "costs $", price)
# Task 3 - Convert numeric input
radius = float(input("Enter radius of the circle (cm): "))area = 3.1416 * radius ** 2print(f"Area = {area} cm^2")
# Task 4 - Convert multiple numeric inputs
length = float(input("Enter beam length (m): "))force = float(input("Enter applied force (N): "))stress = force / lengthprint(f"Stress per meter = {stress} N/m")Your program output should look similar to the sample below.
Enter your name: MayaWelcome, MayaEnter radius of the circle (cm): 3Area = 28.2744 cm^2Enter beam length (m): 2.5Enter applied force (N): 500Stress per meter = 200.0 N/mYou may write your reflection answers as comments at the bottom of your code.
int() instead of float()?Submit your activity and reflection answers to the appropriate dropbox.