Answer:
Read-only memory, or ROM, is a form of data storage in computers and other electronic devices that can not be easily altered or reprogrammed. RAM is referred to as volatile memory and is lost when the power is turned off whereas ROM in non-volatile and the contents are retained even after the power is switched off.
Answer:
The program to this question can be defined as follows:
Program:
num=int(input("Enter any number: ")) #defining variable num, that take value from user
val=0; #defining variable val
for i in range(num): #defining loop to calculate value in decreasing order
val=num-i; #holding value in variable
print(val) #print value
Output:
Enter any number: 3
3
2
1
Explanation:
In the above-given code, a variable "num" is declared, that uses input function to take value from the user end, in the next line a "val" variable is defined, that calculates values and print it in decreasing order.
- In the next step, a for loop is declared, inside the loop a "val" variable uses num and loop variable "i" to calculate the value in decreasing order.
- In the last print method is used that prints "val" variable value.
Answer:
Study the environment and see what frameworks the organization is using. Make friends and learn from people that has being working in that organization.
Don't try to take a project immediately, first work on a project with a bunch of other employees to learn from them.
Explanation:
Be positive and ask questions so you don't make mistakes
Answer:
Answer is in the provided screenshot.
Explanation:
You are making this more confusing for yourself by doing it like this.
I have added variables at the top of your program for game messages that are repeated - and also simplified the given cases for if the player wins, loses or ties.
I invite you to now make a point tracker that, at the start of each game says: You have "x" points.
And you gain a point for winning, lose a point for losing and nothing happens if you tie.
To add a while loop - simply use the "while" keyword, and anything within the loop will repeat while the given condition is true.