Loops are program statements that are repeated as long as the loop condition is true.
The loop in Python, where comments are used to explain each line is as follows:
#This initializes the number of pets to 0
count = 0
#This gets input for the pet name
pet = input("Pet: ")
#This is repeated until the user enters "rock"
while pet.lower() != "rock":
#This increases the number of pets by 1
count+=1
#This prints the pet and the number of pets
print("You have a",pet,"with a total of",str(count),"pet(s)")
#This gets input for the pet name
pet = input("Pet: ")
Read more about loops at:
brainly.com/question/19344465
Answer:
Follows are the matching to this question:
Explanation:
Column A Column B
1 c
2 d
3 b
4 a
Description of the matching:
- In 1(Acid) the correct choice is (c) because the acid (HCl) dissociates to both the H+ ion and the Cl- ion as a solution.
- In 2(Alkaline ) the correct choice is (d) because alkaline NaOH is a solution that differentiates between the ions ( OH-) and Na+.
- In 3(pH ) the correct choice is (b) because for an A compound of less than 7 is an acid and an alkaline pH compound of more than 7. For neutral compounds, a pH of 7 is applicable.
- In 4(Ion) the correct choice is (a) because Na+ ion is loaded positive, and Cl-ion is loaded negatively.
Answer:
The answer is "compromise"
Explanation:
In computer science, the comprised system is used to describe as any technological resource, that has been negatively affected by an untrustworthy source for nondisclosure, integrity or accessibility either deliberately or inadvertently.
- In this, the mechanical interaction from the unauthorized source or technological progress can result in compromise.
- This helps you and the partner to meet each other's interests by taking into consideration both the positions and the solution to the main problem.
Answer: When you declare a variable, you should also initialize it. Two types of variable initialization exist: explicit and implicit. Variables are explicitly initialized if they are assigned a value in the declaration statement. Implicit initialization occurs when variables are assigned a value during processing.
Explanation:
For example, in JavaScript
var PaintAmount = 50; -declare and initialize
function setup() {
creatCanvas(200, 200);
}
function draw() {
ellipse(PaintAmount, PaintAmount) -use the variable PaintAmount
}
or rather in Java,
package random;
public class something() {
Public static void Main(String []args) {
string name; // this is declaring the variable with the example type
string name = new string; //this initializes the declared variable
}
}
F5 key on your keyboard in word and power point if that is what you are referring to.