Learn how to use the SUM function and AutoSum in Microsoft Excel to quickly add values across cells, columns, or rows. Includes syntax, examples, and tips for efficient usage.
Instructions:
Example Code:
import random
# Step 1: Computer picks a random number between 1 and 10
secret_number = random.randint(1, 10)
# Step 2: Initialize the guess variable to None
guess = None
# Step 3: Use a while loop to keep asking the user for input
# write your code here
Sample Input and Output:
Guess a number between 1 and 10: 4
Too low! Try again.
Guess a number between 1 and 10: 9
Too high! Try again.
Guess a number between 1 and 10: 7
Too low! Try again.
Guess a number between 1 and 10: 8
Congratulations! You guessed the correct number.
This sample demonstrates: