d drive i think unless ssd
Answer:
Explanation:
Let's do this in Python, we shall use the package random to generate a random double between 0 and 1. Then we multiply it with 50 and covert to integer to get a random integer between 0 and 50. Place a While function with condition to stop when it's greater than 25
from random import random
attempts = 1
random_int = int(random()*50)
print(random_int)
print("This is attempt " + attempts)
while random_int <= 25:
attempts += 1
random_int = int(random()*50)
print(random_int)
print("This is attempt " + attempts)
Answer:
Program:
month=['January', 'Februrary', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] #list which stores the name of the month.
CheckMonth= int(input("Enter the number of the month")) #it is used to take the inputs from the user.
if CheckMonth>=1 and CheckMonth<=12: #check the condition for valid month.
print(str(CheckMonth)+" is a valid month which name is: "+ str (month [CheckMonth-1])) #print the name of month which is enter by the user.
else:
print(str(CheckMonth)+" is not a valid month, please enter the valid month") # print for the invalid month.
Output:
- If the user inputs 1, it will prints "1 is a valid month which name is: January".
- If the user inputs is 0, then it will prints "0 is not a valid month, please enter the valid month"
Explanation:
- The above program is in python language, in which the first line of the code is used to hold the list of the month.
- Then the second line is used to render a message for the user input, take the input from the user and save it into a variable.
- Then that value is checked by the if-condition that it lies in between 1 to 12 or not.
- If it lies, then print the valid month otherwise it prints that the month is invalid.
Answer:
anonymity
Explanation:
<h2><u>Fill in the blanks </u></h2>
Some Internet users would like to ban Web <u>anonymity </u>because they think that its use increases the risks of defamation, fraud, libel, and exploitation of children.