def func():
while True:
grade = input("What grade are you in?: (I graduated) ")
if grade == "I graduated":
return
print("{} is a fun grade".format(grade))
func()
I hope this helps!
you are working on creating a business document with two other co-workers. Based on just information, which of the following pre-writing strategies would be the best for you?(A.P.E.X.)
4.8 Code Practice: Question 1
Instructions
Write a for loop to print the numbers 5, 10, 15 … 75 on one line.
Expected Output
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75
I included my code in the picture below. Best of luck.
Loops are used to perform repetitive operations.
The for loop in Python is as follows:
for i in range(5,76,5):
print(i,end =" ")
The syntax used for the range in for loop is: (start,end+1,increment)
The start represents the first value to be printed.
So: start = 5
The end represents the last value to be printed.
So: end = 75
Because the end value will not be inclusive, the value is incremented by 1
The increment is 5
Read more about similar programs at:
https://brainly.com/question/21298406
Documentary photographers strive to produce what type of image?
А.
Edited
B.
True
C.
Colorful
D.
Blurred
Answer:
B. :)
Explanation:
What are the steps to customize a slide show?
Go to Slide Show tab, select Hide Slide, select the slides to hide, and save.
Go to Slide Show tab, select Set Up Slide Show, select show type Custom, and save.
Go to Slide Show tab, select Custom Slide Show, select slides to be shown, and save.
Go to Slide Show tab, select Custom Slide Show, select Record Slide Show, and save.
Answer: Third one
Explanation: I got it right
Answer:
Third one
Explanation:
~Föllòw gixannaa on tìktòk and then comment done~
(I will give brainliest answer if you tell me your user)
Answer:
my user is shut.upnow
Explanation:
lol
Answer:
I don't have tik tock sorry if I did I would have followed u
Explanation:
:D
When and how should resources be invested to close gaps between those who do and don’t use the Internet?
Answer:
To minimize the technological gap is necessary and not so hard.
Explanation:
The first form of solving it is to minimize the need to use the internet at home, so that users could save the data in some programs which could use afterward if needed, without the internet.
Access to the documents, books, and folders without the need for the internet would be the perfect solution.
The Internet has to be accessible in school so that the students who don’t have it at home could use the most of it in school. Also, the internet connection should be available in the spots around schools, cafes, libraries during the whole day.
Make the internet affordable for everyone.
How does Python recognize a tuple?
Answer:
Tuples can be recognized like this,
tuple = 'hello', 'world'
or tuples can be recognized like this
tuple = ('hello', 'world')
you can see the value of a tuple by simply printing it out like so,
print(tuple)
Answer:
Tuples can be recognized like this,
tuple = 'hello', 'world'
or tuples can be recognized like this
tuple = ('hello', 'world')
you can see the value of a tuple by simply printing it out like so,
print(tuple)
Explanation:
Justify the following statement: “Some Americans’ sedentary lifestyles contribute to their poor health.”
Answer:
Since the average American will spend 24 hours watching television per week, it is safe to say that they suffer from a lack of movement and exercise. This, in turn, will lead more Americans to be overweight and more likely to suffer from serious health problems! :)
Explanation:
What do the different top level domain names signify, including .com, .org, .edu, .gov, .mil, and .net?
Answer:
They signify different purposes for each website
Explanation:
.gov = A government owned website. Can include non-U.S. governmen websites, the White House, or other government owned websites.
.edu = A domain name for organizations with a focus on education (even for those that are non-U.S.). That means that you can find .edu domains on college websites, universities, and other educational institutions.
.mil = Mil is a shortening of military. It is for the U.S. Department of Defense and subsidiary or affiliated organizations.
.org = Org is a shortening of organization, meaning that this domain name is usually for non-profits and personal sites, but can also be used schools, open-source projects, and even some for-profit organizations.
.com = A website with the domain name .com signifies a commercial website (hence the 'com'). This can include business websites, websites that want to make money online, personal websites, blogs, portfolios, and more.
.net = Comes from the word network. Originally, it was supposed to be only for organizations involved in networking technologies, such as Internet service providers and other infrastructure companies, but restrictions were never enforced so .net was used as an general purpose name space. However, it's still popular with network operators and the advertising sector.
people can use social media responsibly by what
Answer:
spread love not hate n password diligent
By limiting their time on social media
Explanation:
Help me pls!!
Look at the following assignment statements:
food1 = "water"
food2 = "melon"
What is the correct way to concatenate the strings?
newFood = word1 == word2
newFood = word1 + word2
newFood = word1 * word2
newFood = word1 - word2
new food = word1 + word2 will connect both words together with no space in between. The value of newFood will now be "watermelon"
Answer:
new food = word1 + word2
Explanation:
what are some tips to stay focused in school, and to complete work faster?
Answer:
Sometimes listening to music or chewing gum.
Explanation:
When I need to focus, I like listening to music and sucking on a hard candy or chewing gum.
Pls give Brainliest!!
Answer:
What I do to focus in school is to try and ignore everything that is going on around you. ( what your classmates are doing ) Drown out the noise with music if your allowed to listen to music. Ask the teacher is you can go somewhere quieter
Explanation:
Hope this helps, Have a Wonderful Day!!
A battery is connected to a light bulb in a circuit. There is a current of 2 A in the light bulb. The voltage of the battery is 1.5 V. What is the resistance of the light bulb?
Answer:
The current in a circuit is directly proportional to the electric potential difference impressed across its ends and inversely proportional to the total resistance offered by the external circuit. The greater the battery voltage, the greater the current.
Explanation:
Choose all items that represent essential features of excellent navigation menu design.
uses clearly and simply labeled links
is consistently styled and located
contains a link to a site map
is intuitive and easy to use is available on all pages
in the site employs a drop-down list
Answer:
A,B,D,E
Explanation:
Answer:
A- uses clearly and simply labeled links
B- is consistently styled and located
D- is intuitive and easy to use
E- is available on all pages in the site
Which of the following is an example of gameplay in a video game
A: the art of a game
B: the player interacting with the game world and game mechanics
C: the personalities of all the characters
D:all of the above
Answer:
the correct answer is B. the player interacting with the game world and game mechanics
What is wrong in this python code import turtle bot = turtle.Turtle step = (50) turnAngle = (90) bot.Color("blue") bot.Begin_fill() bot.Forward(step) bot.Right(turnAngle) bot.Forward(step) bot.Right(turnAngle) bot.Forward(step) bot.Right(turnAngle) bot.Forward(step) bot.Right(turnAngle) bot.End_fill()
Answer:
The "Turtle" is a method and should be declared with parenthesis and every other method in the code (except the Turtle() ) should begin with lowercase letters like right, forward and begin_fill. The python file should not be saved as turtle.py to avoid import error.
Explanation:
The python turtle module is a graphical programming package created to introduce programming to children. It has several classes and methods to manipulate objects on the screen.
import turtle
bot = turtle.Turtle()
step =(50)
turnAngle =90
bot.color("blue")
bot.begin_fill()
bot.forward(step)
bot.right(turnAngle)
bot.forward(step)
bot.right(turnAngle)
bot.forward(step)
bot.right(turnAngle)
bot.forward(step)
bot.right(turnAngle)
bot.end_fill()
Which line is most likely an error? A-“hello” B-hello C-“100” D-100
Answer: I think it is c
Explanation:
The error is most likely C. Hello quoted is proper. ("Hello") Eliminate A. Hello is proper as well so eliminate B. Now, we are at C. I Believe this is the answer since it is 100 quoted ("100"). 100 quoted does not make since unless used in a sentence such as "I bought 100 apples today for a good price!" D cannot be the answer since it is 100 all by itself. Thus, your answer should most likely be C, "100".
What are three print output options available in PowerPoint?
A. Handouts, Slides, Speaker Notes
B. Outline, Kiosk, Overheads
C. Overheads, Handouts, Slides
D. Kiosk, Handouts, Computer
Answer: .A
Explanation: i got it right
Answer:
'A' on edge 2020
Explanation:
Just took the test
1. You are designing a program that will keep track of the boxes in a doctor’s office. Each box will have three attributes: date, contents, and location. Write a class that will consist of box objects.
Answer:
Public class Box
{
private String myDate;
private String myContents;
private String myLocation;
public class Box(String date, String contents, String location)
{
myDate = date;
myContents = contents;
myLocation = location;
}
}
Hope this is what you're looking for! If not, let me know and I can try to help more. :)
Each box will have three attributes: date, contents, and location. It is class box.
What is class box?There is a method in the box class of this program. Box is a brand-new data type for the class.
Box is used to declare objects of this type as having double height; Class declaration just generates a template; it does not generate any actual objects. None of the objects of type are affected by this code. Box void volume
Therefore, Each box will have three attributes: date, contents, and location. It is class box.
To learn more about class box, refer to the link:
https://brainly.com/question/14427083
#SPJ2
Write a program that inputs a filename from the user and prints to the terminal a report of the wages paid to the employees for the given period. The report should be in tabular format with the appropriate header. Each line should contain an employee’s name, the hours worked, and the wages paid for that period.
Answer:
filename = input("Enter file name: ")
file = open("filename", "r")
while file:
line = file.readline()
print(line)
file.close()
Explanation:
The python source code prompts the user for a file name (file extension included), opens the file and reads the content of the file to the end, one line at a time, and prints it.
Note that the file is closed at the end of the program to avoid leakage.
The program illustrates the use of file manipulation.
File manipulations are used to read from a file, and also write into it.
The program in Python, where comments are used to explain each line is as follows:
#This gets the file name
fname = input('Enter input file name: ')
#This prints the output header
print('Name\t\tHours\t\tTotal Pay')
#This iterates through each line of the file
for line in open(fname):
#This gets the text on the current line
cline = line.strip()
#If the text is not empty,
if cline != '':
#This gets the name, wage and time worked on that line
(name, wage, time) = cline.split()
#This converts the time to integer
time = int(time)
#This calculates the total pay
totalpay = float(wage) * time
#This prints the employee details
print(name,'\t\t', time,'\t\t' totalpay))
Read more about file manipulations at:
https://brainly.in/question/10211834
Write a function that takes the name of a file with a .csv extension (a comma-separated value file), and writes a new file that is equivalent (same name and same data) but with a .tsv extension (a tab-separated value file: like a CSV but with tabs instead of commas separating the elements of the file). Note: the character used to represent a tab is ‘\t’.
Answer:
import pandas as pd
def convert_to_tsv( csv_filename ):
df = pd.read_csv("csv_file")
df.to_csv("csv_filename.tsv", sep='\t')
Explanation:
The python program uses the pandas' module to read in the csv file in the function "convert_to_tsv". The file is saved as a tsv file with the pandas to_csv method and the " sep= '\t' " attribute.
How do I write my name in binary code?
Answer:
qUE
wHAT CODE
Explanation:
Which command is located in the Action Settings dialog box that allows a user to set a linked or embedded object as a trigger to perform an action?
Object action
Hyperlink to
Run action
Highlight click
Answer:
Object action was the answer.
Explanation:
Answer:
Object action is the answer
Explanation:
I got it right on the unit review
4.8 Code Practice: Question 1
Instructions
Write a for loop to print the numbers 5, 10, 15 … 75 on one line.
Expected Output
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75
Answer:
c = 1 # global variable
jhjl jh
def add(): c = 1 # global variable
def add():
print(c)
add()
c = c + 2 # increment c by 2
print(c)
add()
Explanation:
Answer:
for x in range(1, 16):
print(x * 5, end=" ")
Explanation:
Hope this helps!
I am stuck on these 2 questions. Can someone help me please?
6) Write a Python code to save the following dictionary in a CSV file.
dict = {1: "Hello", 2: "Hi", 3:"bye"]
7) Write a Python code to read the CSV file generated in the previous step
(1) to a Python dictionary.
Answer:
My answer could not be submitted because of some signs and symbols in my solution.
So, I've added the answer and a comprehensive explanation as an attachment.
Note that the question is answered using Python programming language.
Explanation:
Lines that start with # are used to explain the program
See attachment
agree and tell why becoming a priest/nun is an honorable job PLEASE ASAP
how many ones dose it take to get 9 tens
Explain two options you have in order to abide by the move over law??? PLEASE HELP ME ASAP!!
Answer:
you can either move over if on an interstate into a different lane safely. if there is only one lane you must reduce your speed
why make people act meaner online the. in person
Microsoft Word, Google Chrome, and Windows Media Player are examples of
Answer:
They are all examples of software.