Answer:
people = list(map(int, input().split())) # gets input and makes them into an integer
for i in range(len(people)):
if 0 <= people[i] <= 5:
print('Baby') # You didn't specify how you want to 'store' the info, but I'm just going to print it out
elif 6 <= people[i] <= 17:
print('Teen')
elif 18 <= people[i]:
print('Adults')
Explanation:
This is the basic structure of the code. This is written in Python 3x. If you are writing in a different language, then just use the template given to you!
Based on the Microsoft Excel data validation, the option that is not an Error Style for data validation is the <em><u>choice that does not show an error alert.</u></em>
Given that there is no option available, the best way to answer this question is to show the types of Error Styles for data validation available.
<h3>Different types of Error Style for data validation</h3>
- Stop style: this will bring the option of "Retry, " "Cancel, " and "Help."
- Warning style: this will show "Continue," with options of "Yes," "No," "Cancel," and "Help."
- Information Style: this will ask you to input the whole number with the option of "Ok," "Cancel," and "Help."
Hence, in this case, it is concluded that the Error Style for data validation is Stop, Warning, and Information Style.
Learn more about Error Style for data validation here: brainly.com/question/18497347
Answer:
Array + 36.
Explanation:
The array contains the address of the first element or the starting address.So to find the address of an element we to add the size*position to the starting address of the array.Which is stored in the variable or word in this case.
There are 9 elements in the array and the size of integer is 4 bytes.So to access the last element we have to write
array + 4*9
array+36
Answer:
2^7= 128
Explanation:
An instruction format characterizes the diverse part of a guidance. The fundamental segments of an instruction are opcode and operands. Here are the various terms identified with guidance design: Instruction set size tells the absolute number of guidelines characterized in the processor. Opcode size is the quantity of bits involved by the opcode which is determined by taking log of guidance set size. Operand size is the quantity of bits involved by the operand. Guidance size is determined as total of bits involved by opcode and operands.
Answer:
See explaination
Explanation:
def readFileFirstLast(filename):
# doc string
''' Function accept the filename and opens the fle
and reads all lines and strips new line character and
stores first and last in a string and return that string'''
#eception handle if file not found
try:
#opening the file
f = open(filename)
#reading the first line and striping the ne line
string = f.readline().strip()
#iterating until last line
for line in f:
pass
#concate the last line after strip the new line character to the string
string = string + " " + line.strip()
#return the string
return string
except:
#if file not found
return "File not found"
#taking the file name from user
filename = input("Enter a file name: ")
#printing the doc string in function
print("\ndoc_sting: \n"+ readFileFirstLast.__doc__+"\n")
#printing the returned string by calling the readFileFirstLast()
print("output string :")
print(readFileFirstLast(filename))