Answer:
total = 0
while True:
number = float(input("Enter a number: "))
if number < 0:
break
total += number
print("The total of the positive numbers entered is", total)
Explanation:
*The code is in Python.
Initialize the total as 0
Create a while loop. Inside the loop:
Ask the user to enter a number. Check the number. If it is smaller than 0 (This means it is a negative number), stop the loop using break. Add the number to the total (cumulative sum). (This way your program keeps summing numbers until you enter a negative number)
When the loop is done, print the total
Help! Will add the brainliest.
Which of the following is a tip for getting a good pet photograph?
A. Always stand when taking the picture to keep the pet away from the camera.
B. Show the pet's personality.
C. Avoid having others with you.
D. All of the above
Answer:
Show the pet's personality
Explanation:
You want to get to know an animal when you look at their photo. If they are smiling then that will show how happy they are! Also, A is incorrect because sometimes you want to be on the same level as your animal. So crouch down and take that close up! And C is wrong because sometimes it is helpful for someone else to be there.
what advice can you give to learners to achieve their goals
Answer:
Never give up, take your time, don't get distracted easily, lock your electronics in a box until you finish your work.
Reach for the stars! Always go the extra mile! Never give up!
In a sentence
If you wanted to become a police officer and you had to read boring books and you wanted to give up, but always think "I should always push myself past my limits, If I gave up then how would i know what I could have become?
Trademark
Owned by me
Anyone who know how to use canva .com please make a logo of the name : Deadly Sins
Answer:
Yes ma'am as in the anime?
Explanation:
Cuz there's a anime show called 7 deadly sins or just deadly sins?
Answer:
hello give the person above brainlist
Explanation:
Write the function greeting that takes a string as input. That string will be formatted as Name Age Hobby, without any punctuation. greeting should split their response into list elements, then use index values to greet them by name and respond that you enjoy that hobby as well, with the format: ‘Hello, ! I also enjoy !' Make sure your output matches this format! For example, greeting('Jose 17 hockey') # => 'Hello, Jose! I also enjoy hockey!' greeting('Cindy 14 robotics') # => 'Hello, Cindy! I also enjoy robotics!'
Answer:
The function in Python is as follows:
def greetings(details):
details = details.split(' ')
print('Hello, '+details[0]+'!, I also enjoy '+details[2])
Explanation:
This defines the function
def greetings(details):
This splits the input string by space
details = details.split(' ')
This prints the required output
print('Hello, '+details[0]+'!, I also enjoy '+details[2])
After splitting, the string at index 0 represents the name while the string at index 2 represents the hobby
Find the total cost of a $125 coat purchased in Los Angeles County where the sales tax is 9%. Use the expression c + 0.09c
A
$11.25
B
$112.50
c
$126.25
0 $136.25
Price of ETH coin right now?
Don't answer if u don't know.
Answer:
58,715.40
Explanation: