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.​

Answers

Answer 1

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


Related Questions

A computer that provides special services to client computers on demand.

Answers

Answer:

A server?

Explanation:

I feel like this would be the answer but if it is multiple choice, reply with the possible answers. Hope this helps!

why make people act meaner online the. in person ​

Answers

Because they are scared to say something in real life. Behind a screen they are protected

Documentary photographers strive to produce what type of image?
А.
Edited
B.
True
C.
Colorful
D.
Blurred

Answers

I’m pretty sure that the answer is B

Answer:

B. :)

Explanation:

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()

Answers

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()

How does Python recognize a tuple?

Answers

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:

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

Answers

Answer: .A

Explanation: i got it right

Answer:

'A' on edge 2020

Explanation:

Just took the test

Which of the following is a good way to find a research topic

A. Personal Experience
B. Getting an idea from an advisor
C. Looking for the next step in the research process
D. All of the above

I need the answer quickly giving brainliest to the first person who answers

Answers

Answer:

Im bored wanna talk?

Explanation:

The manipulation of data files on a computer using a file browser is
.

A
is a computer program that allows a user to manipulate files.

A
is anything that puts computer information at risk.

Errors, flaws, mistakes, failures, or problems in a software program are called
.

Software programs that can spread from one computer to another are called
.

Answers

Answer:

The answers are system management. Next, file manager. After, security threat. Second to last, bugs. Last, system management tools.

Explanation:

I did the edg 2020. mark me as brainiest please.

Answer:

1.) file management

2.) file manager

3.) security threat

4.) bugs

5.) viruses

Explanation:

did it in edge

The ideal hash function:

A. Should be unfeasible to find two inputs that map to the same output
B. Should be unfeasible to learn anything about the input from the output
C. Basically we don’t want people to figure out what was said
D. All the above

Answers

I believe the answer is A
Hope this helps

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

Answers

Answer:

the correct answer is B. the player interacting with the game world and game mechanics

people can use social media responsibly by what​

Answers

Answer:

spread love not hate n password diligent

By limiting their time on social media

Explanation:

Explain two options you have in order to abide by the move over law??? PLEASE HELP ME ASAP!! ​

Answers

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

When and how should resources be invested to close gaps between those who do and don’t use the Internet?

Answers

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.

agree and tell why becoming a priest/nun is an honorable job PLEASE ASAP​

Answers

As a priest or nun you are helping the community of people who you relate to. They do a lot of charity work also so you are making the world a better place. And if your religious you are in a career that helps you grow in your faith.

Which line is most likely an error? A-“hello” B-hello C-“100” D-100

Answers

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".

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

Answers

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!

Which of the following would be done outside of a control room?


programming a teleprompter

cueing camera operators

switching between multiple cameras

uploading camera footage on location

Answers

Answer:

a

Explanation:

Answer:

a

Explanation:

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’.

Answers

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 many ones dose it take to get 9 tens

Answers

It takes 90 ones to get 9 tens
The answer would be 90:)

Explanation: there are 10 ones in one 10 so if you multiply 10 times 9 it’s 90

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​

Answers

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 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

Answers

Answer:

Object action was the answer.

Explanation:

Answer:

Object action is the answer

Explanation:

I got it right on the unit review

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.)

Answers

Brainstorming, Rationalizing, and Rough Drafts.

Justify the following statement: “Some Americans’ sedentary lifestyles contribute to their poor health.”

Answers

It is essential that people are active in their lives to fulfill that basic biological need. This will allow blood flow to increase, which is beneficial for health. In addition, it can release healthy chemicals into the brain, which is beneficial for mood, energy, and well-being.

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 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.

Answers

Answer: Third one

Explanation: I got it right

Answer:

Third one

Explanation:

Microsoft Word, Google Chrome, and Windows Media Player are examples of

Answers

Answer:

They are all examples of software.

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

Answers

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

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.

Answers

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

what are some tips to stay focused in school, and to complete work faster? ​

Answers

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!!

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

Answers

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:

look at the picture lol

Answers

Answer:

Zoom in more please and than i can help

Explanation:

Answer:

I would go with the first blue highlighted one... but i could be wrong

i hope i helped

if i didn't... i am sorry, i tried.

Other Questions
discriminant of 2x2 - 4x + 7 = 0 Rachel types 162162162 words in 333 minutes. Rachel types at a constant rate. How many words does Rachel type per minute? HURRY ANSWER FAST, TIMED TEST How could Tang and Sung paintings be described?A. Abstract, with no recognizable subjectB. Realistic, with a focus of real life examples C. Surreal, with a focus on dreams or fantasyD. Expressionist, with an emphasis on emotion What challenges arethese sailors goingto face duringexploration (on andoff land)? Write a multi-way if statement that compares the double variable pH with 7.0 and makes the following assignments to the bool variables neutral, base, and acid: Read this excerpt from Dean Kamen's "On Becoming an Inventor."I had just finished making a complicated piece of equipment that was to be used for a show opening in Philadelphia called "Fiorello." When the machine arrived they had trouble wiring it, so instead of going off to college that morning for orientation, I spent several days at the theatre fixing my light/sound equipment. The show received poor reviews, except for the mention by one reviewer of the "special effects," which, he wrote, were "outstanding."How do writing shape readers' impressions?Kamen's opinion seems to be that machines are more important than anything else. He supports this with an example of his work on a machine for a show in Philadelphia. His tone is formal and directed at a scholarly audience.Kamens opinion seems to be that hard work can overcome any obstacles. He supports this with an example of hard work on a light machine. His tone is humorous and directed at a young audience.Kamens opinion seems to be that his inventions are more important to him than other activities. He supports this by sharing an example of skipping college orientation to fix sound equipment. His tone is informal and directed at a general audience.Kamen's opinion seems to be that special effects can make a show outstanding. He supports this with an example of his own special effects machine. His tone is formal and directed at a scientific audience. How does Amir's point of view differ from Sam's point of view after Sam realizes his wallet is missing? Write the equation of the line that passes through the points (-8, -1) and (5-7). The quotient below is shown without the decimal point. Use number sense to place the decimal point correctly.340.1 9.5 = 358 A hurricane sweeps across the ocean and damages the houses of people living along the coast. This is an example of interactions between the biosphere, atmosphere, and sand hydrosphere, sand, and biosphere atmosphere, sand, and hydrosphere atmosphere, hydrosphere, and biosphere What are the possible results of gametes receiving the wrong number or proportion of chromosomes during meiosis II? Select all that apply. A) zygote that cannot survive B) gametes with one copy of chromosomesC) two new nuclei forming during cell divisionD) medical conditions for the offspring 1. The chemical equation for photosynthesis is shown below is incomplete 6H20 + ______________ energy C6 H12 O6 + ________________ Plant pigmenta) Complete the equation in either all words or all symbols. b) Name the plant pigment necessary for this reaction 2. Name the tissues labelled A.., B and C..(3M)3. Complete the table by matching each of the described functions to one of the leaf parts as shown in above diagram (4M)Description of function Leaf partMain region for photosynthesis. Contain many chloroplast to trap light energy. Cells are loosely packed. Air spaces between cells allow gaseous exchange. Thin and transparent layer that allows light to pass through. Water vapor passes out during transpiration. If question 2 is not answerable or if the picture is missing then leave it explain the significance of slave narratives. A new brand of refrigerators and air conditioners saves 15% on power use. Your present monthly power bill averages $200. What would be your monthly savings by using this new brand? Which of the following elements has 3 electrons in the 2p sublevel?O A. OO B. CO C. BO DN 3x2 + x = 2Solve Real and imaginary solutions How do the data support your claim above? Explain your statement above. Hello people, how is your day/night going? I was wanting to know if you guys have seen SpongeBob and have caught any adult humor as I have lol! It is a killer when you do find it!! The Buffalo Bills football team wanted to buy new footballs. what did the team have to pay per football? Be sure to explain all of your work. Question 4 of 5The box shows the element nitrogen as it appears in theperiodic table.NNitrogen14.0Which two parts are needed to make a neutral atom of nitrogen?O A. Electron clouds with a total of 14 electronsI B. A nucleus with three protons and four neutronsC. A nucleus with seven protons and seven neutronsO D. Electron clouds with a total of seven electrons