The baby boomers is a type of demographic group. The demographic groups are usually categorized by age, income bracket, social class and so on. Baby boomers are classified as a generation of a group of people and also therefore, by their age range.
The subclass indicating the extent of physiological decompensation is known to be the severity of illness.
<h3>What is psychological decompensation?</h3>
“Decompensation” is known to be a term that is often used in mental health professionals to tell about an episodes where a person's existing mental-health or psychiatric disorder is going down.
Note that The subclass indicating the extent of physiological decompensation is known to be the severity of illness.
Learn more about physiological decompensation from
brainly.com/question/8339958
#SPJ1
In Python, assume that a file containing a series of integers is named numbers.txt and exist on the computer's disk. Write a program that reads the entire numbers store in the file and calculates their total.
Here is what I have written but it does not run:
def. main():
out file=open('numbers.txt','r')
temp=outfile.readline()
total=0
while temp!='':
t=int(temp)
total=total+i
temp=outfile.readline()
outfile.close()
print('Total sum is:',total)
main()
Text file is a file named numbers.txt with the numbers 1-50 in it
Learn more:
- The sum of three consecutive integers is 186. what are the integers
brainly.com/question/1768254
Keywords: python, integers, computer, numbers, program
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.