<u>When a programmer declare single dimension or double dimensions array they use box bracket with index number to access the cell number.</u>
int a[10]; = where a is variable name declared with data type as integer and which hold 10 values.
Each is access with cell number or index number surrounded by box brackets
Example a [4] where “a” is variable number and “4” is index number or cell number. By refer “4” user is access the 4 cell data
Maximum “a” single dimension store total of 10 number where cell number or index number starts from 0 to 9.
Answer:
import random
print("Hello! I have a random number from 1 to 100! It is your job to try and guess it!")
number = random.randint(1,101)
guess = int(input("start to guess: "))
num_guesses = 1
while guess != number:
if guess > number:
print("lower")
guess = int(input("try again: "))
num_guesses +=1
elif guess < number:
print ("higher")
guess = int(input("start to guess: "))
num_guesses +=1
print("congrats it took you", num_guesses, "tries")
Explanation:
Answer: undefined
Explanation:
just gonna answer it instead of it being a comment
Answer:
"It is media that is distributed in paper form, such as magazines and newspapers."