Answer:
Following is the program in the python language
st = 'sAN RaN' #String
print(st.lower()) #display into the lowercase
Output:
san ran
Explanation:
Following are the description of program
- Declared and initialized the string in the "st" variable .
- The lower function in python is used for converting the uppercase string into the lower case string .
- Finally in the print function we used lower function and display the string into the lower case
For the list of application, either check in the book or come up with yourself.
All application not depend on the 32 bit or 64 bit processor.
Answer:
RANK.AVG
Explanation:
Required
Arrange data in descending order based on average
The feature to do this is to use the RANK.AVG() function.
By default, the function will return the ranks of the selected data in descending order (i.e. from highest to lowest); though, the sort order can be changed to ascending order.
The syntax is:
=RANK.AVG (number, ref, [order])
Where
number
The number to use as rank
ref
The cell range
order
0 represents descending order while 1 represents ascending order
Answer:
Explanation:
The following code is written in Python. It is a function called guessMyNumber and like requested creates a random number and saves it to secretNumber. Then it continuously asks the user for their guess and compares it to the secret number. If the guess is correct it exits the loop otherwise it will continue to ask for a new guess.
import random
def guessMyNumber():
secretNumber = random.randint(1, 10)
print(secretNumber)
while True:
guess = input("Enter your guess: ")
guess = int(guess)
if (guess == secretNumber):
print("Congratulations you guessed correctly")