import math
num1 = int(input("Enter a number: "))
num2 = int(input("Enter a number: "))
print(math.gcd(num1, num2))
The gcd() - greatest common divisor function, which is part of the math module works perfectly in this situation.
Answer:
A: Create the product that customers
Explanation:
I did it on edgy
The two major SAS steps are data and proc.
SAS programming structure is based on two essential steps, Data and Proc.
1. The DATA step:
This involves collecting and uploading the essential data to the program memory. It is used to update, modify and edit the data in case of any errors once it has been added to a dataset. New datasets can be created from existing ones by updating, editing, and/or merging them. at the end of this step, SAS data sets are created.
2. The PROC step:
This step processes and analyses the data collected into datasets in the previous step. it is used to perform specific functions on the data. at the end of the proc step, a result or report is produced.
In a SAS code, each line of code should begin either with a DATA or PROC step.
<u>While the other options are incorrect because: </u>
<u />
- Analysis: analysis is done in the PROC step.
- Content: Data or content is collected in the DATA step.
- Stat: a stat function acquires the status information regarding a specific file. Functions are performed on the datasets in the PROC step.
- Run: This command is used to execute a code.
- Import: Datasets are created by importing data from other datasets and outside.
- Print: the report produced at the end of the PROC step can be printed as a hard copy.
You can learn more about SAS at
brainly.com/question/13615203
#SPJ4
Answer:
weights = []
total = 0
max = 0
for i in range(5):
weight = float(input("Enter weight " + str(i+1) + ": "))
weights.append(weight)
total += weights[i]
if weights[i] > max:
max = weights[i]
average = total / 5
print("Your entered: " + str(weights))
print("Total weight: " + str(total))
print("Average weight: " + str(average))
print("Max weight: " + str(max))
Explanation:
Initialize the variables
Create a for loop that iterates 5 times
Get the values from the user
Put them inside the array
Calculate the total by adding each value to the total
Calculate the max value by comparing each value
When the loop is done, find the average - divide the total by 5
Print the results