Answer:
The code is given as below: The input and output is as given for one case.
Explanation:
echo -e "Enter A, B or C : \c" #Printing the line on the screen
read -rN 1 test #read the character in the variable test
echo
case $test in #Setting up the case structure for variable test
[[:lower:]] ) #checking all lower case letters
echo You did not enter A, B or C;;
[D-Z] ) #checking upper case letters from D to Z
echo You did not enter A, B or C;;
A ) #Condition to check A
echo You entered A;;
B ) #Condition to check B
echo You entered B;;
C ) #Condition to check C
echo You entered C;;
esac #Exiting the case structure
It would be C, because the other ones would be breaking the law. using the horn over and over again is annoying. cell phone is distracted driving. driving slow than the speeding limit is against the law. so the only good choice is C because following the laws will not get you in trouble.
Answer:In the mid-1800's there were only 64 known elements. Scientists then came up with the idea that they could arrange the element by the atomic mass number. Every element has its own unique atomic mass number because elements have different numbers of protons and neutrons.
Explanation:
Try powering it off then holding in the home key for 30 seconds then try turning it on
f = open("numbers.txt", "r")
lst = [int(x) for x in f.read().splitlines()]
sum = 0
for x in lst:
----sum += x
I had to add the four dashes to maintain the structure of my code. You can replace them with spaces. Also, I wouldnt recommend having a variable named sum because python has a built in function named sum. You can test this code by putting print(sum) at the end of the code.