Atheel tests a program and gets a NameError. How can this be fixed?

Answers

Answer 1

Answer:

You can't call a function unless you've already defined it. Move the def createDirs(): block up to the top of your file, below the imports.

Explanation:

Some languages allow you to use functions before defining them. For example, javascript calls this "hoisting". But Python is not one of those languages.

Answer 2

Answer:

B = Create a variable

Explanation:

First off to understand this question, you need to understand what a NameError is. A NameError is when a function or variable isn't valid, or is not defined. So what you need to do it make a variable that is valid/defined. Therefore the answer is B create a variable

I hope this helps!


Related Questions

Which external reference is formatted correctly?

=[My_Sales.xlsx]!Quarter1:C12

O ='(My_Sales.xlsx)!Quarter1':C12

O ="[My_Sales.xlsx]Quarter1'!$C$12

O =(My_Sales.xlsx)!Quarter1:$C$12


C on edge.

Answers

Answer:

= '[My_Sales.xlsx]quarter1'!C12

Explanation:

The formula gets the value of the cell C12 in the quarter worksheet of the  My_Sales.xlsx workbook.

Answer:

C

Explanation:

got it right on edge

HELP ASAP! Prompt
What are keywords?

Answers

a word or concept of great significance, phrases basically that has to do with particular documents, assignments, etc most stuff in general..
It basically means important words to help understand text

A computer is performing a binary search on the sorted list of 7 numbers below.

What is the maximum number of iterations needed to find the item?

[1, 5, 20, 50, 51, 80, 99]

A. 1

B. 3

C. 6

D. 7

Answers

Answer:

B

Explanation:

Binary search will start in the middle of the list, find which side the value is at, then look at the middle of those values.  This is incredibly efficient for larger values (Although it needs to be sorted) and practical in many instances.  Let's say that the desired number is 1, the binary search would look at "50" first, then proceed to compare with "5" and finally on it's third iteration, pick 1.

The maximum number of iterations needed to find the item is; Option B: 3

We are given the list of numbers as;

[1, 5, 20, 50, 51, 80, 99]

Now, when conducting binary search, it usually starts in the middle of the list of given numbers.

Thereafter, the next step is to find the side that the value being searched for is located before looking at the middle of those values.

Now, if the number being searched for in the given list is 1, it means that the binary search would first look at the middle number which is 50. Thereafter, it will proceed to compare it with the second number 5 and the lastly with the third iteration, will be 1.

Thus,the number of iterations needed to find the item is 3 iterations.

Read more about binary search at; https://brainly.com/question/24786985

Draw a parallel line to XY

Answers

Answer:

cant draw on this app sorry man

ANSWER ASAP, I'LL MARK THE BRAINLIEST
A designer has created a doorbell that rings when it is pressed. What is the input in this system?

a) ringing sound
b) push-to-make switch
c) motion sensor
d) temperature sensor​

Answers

Answer:

Push to make switch

Explanation:

The sound is created after you push it. Pushing it is the input and the sound is the output

While you are working on your computer, it shuts down unexpectedly, and you detect a burning smell. When you remove the case cover, you notice a distended capacitor. What can you do to fix this problem

Answers

Answer:

fire

Explanation:

hydrant

Answer:

Replace the motherboard

Explanation:

please help me i dont know

Answers

There is something wrong with your photo you should try and re-post it again

What happens when a bookmark is added to a document?

-An item is added to the index.
-The list of citations becomes longer.
-The content that the bookmark links to appears.
-A shortcut for navigating to a specific location appears.

Answers

Derslerinde başarılar dilerim

Answer:

The content that the bookmark...

What are the difference between immediate window and view window.
(wrong answers will be reported)

Answers

Answer:

mmediate window is used to debug and evaluate expressions, execute statements, print variable values, and so forth. It allows you to enter expressions to be evaluated or executed by the development language during debugging.

The Command Window is used to execute commands or aliases directly in the Visual Studio integrated development environment (IDE).

Explanation:

The cost of manufacturing one complete high chair are shown below: High Chair £8.50 Legs £22.75 Strap £1.90 Labour £2.60 Calculate how much one high chair would be sold for, if the manufacturer included a 30% profit margin. Round to the nearest pence.

Answers

Answer:

£69 (nearest pound)

Explanation:

Given the cost breakdown for the manufacture of 1 complete high chair :

High Chair __ £8.50

Legs ______ £22.75

Strap _______ £1.90

Labour ______£2.60

Total : £(8.50 + 22.75 + 1.90 + 2.60)

Total manufacturing cost = £35.75

Profit margin = 30%

Sales price = (100 + profit margin)% * total manufacturing cost

Sales price = (100+30)% * 35.75

Sales price = 130% * 35. 75

Sales price = 1.3 * 35.75

Sales price = £68.575

plz answer -----------

Answers

Answer:

1

Explanation:

5x4=20      20

------------ = --------

6x4=24        24

1x4=4             4

------------ = ----------

4x6+24        24

4   + 20

--------------- =  24/24 OR 1

24 + 24

Answer:

1

Explanation:

Which of the following scenarios describes an IT
professional using the Internet and computer
system access in an unprofessional or
inappropriate way? Check all of the boxes that
apply.

Answers

Answer:

-checking social media networks during working hours

-surfing the Internet during working hours for what to do on the weekend

-downloading a favorite band’s latest album from a file-sharing service

Explanation:

they are all correct on edg.

Answer:1 2 3 they are all correct

Explanation:

yo can someone hook me up with some uranium

Answers

bet where u stay at?

Answer:

now how we gon do dat

Explanation:

...

Kyra is teaching a photography class. She would like her students to share photos. She would also like the students to be able to review other students' photos and offer feedback. What technology should Kyra use?

a blog
a wiki
a domain
e-mail

Answers

Answer:

A blog.

Explanation:

A blog can be defined as an informative or discussion-based website that is updated regularly and published over the internet. The informations that are posted on a blog are usually done chronologically and it includes pictures, videos, music, movies, novels, etc.

In this scenario, Kyra is teaching a photography class. She would like her students to share photos, be able to review other students' photos and offer feedback.

Hence, the technology Kyra should use is a blog because it would avail the users (students) to post photos, make comments on blog posts and review items posted by others.

You are finally at the stage of the software life cycle where you begin programming. What is this stage called?
Group of answer choices

analysis

development

coding

implementation

Answers

You are finally at the stage of the software life cycle where you begin programming. What is this stage called?

development

What kind of music inspires you? Why? (:

Answers

Answer:

Punk rock

Explanation:

The songs tell stories and/or teach lessons. Its all about doing it yourself and not letting anyone decide anything for you.

How do I make someone "Brainiest".
First person to reply will get "Brainiest"

Answers

Answer:

Usually when someone answers a question there would be an option to mark the brainliest. However, you only get one every like 24 hrs so if you already gave someone brainliest you can't give it to someone else for a while

Explanation:

Answer:

Brainiest

Explanation:

1. Would it be possible for two people to have the same email address? Explain.

Answers

Answer: No

Explanation:

For the same reason that two people cannot have the same address, it's just a virtual address.

Answer:

no

Explanation:

because  if i email you then the computer would not know which one to send it to so the answer is no  

what tasks should a laptop accomplish?

Answers

Answer:

general & personal used for computing.

Which of the following behaviors does not harm a company if your employment is terminated?
A. getting a copy of word-processing software before leaving
B. selling trade secrets to competing companies or to your future employer
C. creating a username and password so you can access company information after you have left
D. notifying your employer of all accounts you have access to, and requesting that they change all passwords before you leave

Answers

Answer:

Notifying your employer of all accounts you have access to, and requesting that they change all passwords before you leave.

Answer:

its D

Explanation:

took the test

8. Cloud Storage is
a) Computer technology to control the weather.
b) Computer technology to make computers faster.
c) Computer technology to make computers slower.
d) Computer technology to store files on the Internet,

Answers

Answer:

The correct option;

Computer technology to store files on the internet

Explanation:

Cloud Storage provides a means where data files originally locally stored on a computer are stored in remote or off-site locations which are then accessible through a public internet source or through a private network

The provider of the cloud services takes responsibility for data which are stored in the site

A cloud storage consists of a data server that is connected to the internet to which files are transferred to by a user manually or by automation. The data server then sends the data further to other server. The user can then access the stored data through the cloud storage provider's users web interface.

Answer:

D

Explanation:

d) Computer technology to store files on the Internet,

A security administrator is conducting a penetration test on a network. She connects a notebook system to a mirror port on a network switch. She then uses a packet sniffer to monitor network traffic to try and determine which operating systems are running on network hosts. Which process did the administrator use in the penetration test in this scenario

Answers

Answer:

Active fingerprinting

Explanation:

PLEASE ANSWRR ALL ASAP

ILL GIVE BRAINLY PLEASE HELP

Answers

Answer:

2D from hexadecimal to denary is 13 + 2*16 = 45

68 from hexadecimal to denary, using the same logic as above, is 104.

AB from hexadecimal to denary, using the same logic as above, is 171.

Lastly, F9 from hexadecimal to denary is 249.

31 from denary to hexadecimal is 1F (notice that it is one less than 32, which is 2*16).

73 from denary to hexadecimal is 49.

184 from denary to hexadecimal is B8

Lastly, 255 is FF (notice that it is one less than 256, which is 16*16)

200 points if answered correctly. Including variability in your video games is completely unnecessary and adds nothing to the player’s experience.
Group of answer choices

True

False

Answers

........

my guess is false.

Answer:

true

Explanation:

Help


Which of these lines of code will increment a variable?


A.

print(variable)


B.

count(variable)


C.

inc(variable)


D.

variable = variable + 1

Answers

the answer is A :) hope it’s right have a nice day

name three computer hardware manufacturers.

Answers

Answer:

Acer, Inc.

Advantech Co., Ltd.

Akar Auto Industries Ltd.

Explanation:

Explanation:

apple chrome yoga hope this helps

Examples of email use that could be considered unethical include _____.


sending a quick message to your friend about last weekend

sharing a funny joke with other employees

denying receiving an e-mail requesting that you work late

sending your boss the monthly sales figures in an attachment

forwarding a chain letter asking for donations to a good cause

setting up a meeting with your co-worker

Answers

Answer:

"Denying receiving an e-mail requesting that you work late "

"Sending a quick message to your friend about last weekend "

"Sharing a funny joke with other employees"

Explanation:

Based off of the questions, I assume it means while you are at work. If you're at home or something, all of these are fine.

Answer:

"Denying receiving an e-mail requesting that you work late "

"Sending a quick message to your friend about last weekend "

"Sharing a funny joke with other employees"

Explanation:

What is the largest place value in a 12 bit binary number?

Answers

The largest binary number that can be expressed with 12 bits is all 1s, which means 1 followed by 1 followed by 1, up to 12 times.

Deep-Learning vs Machine Learning, differences?

Answers

Answer:

one is in bricks and mortar and the other is on a machine

Explanation:

jk its one is learning threw trial and error and the other is through one set of code that tells it how to to the task one way that makes it have one path

what is a type of transition used for music in Earsketch

Answers

Answer:

In order to compose music, EarSketch coders can use samples. Audio samples are located in the sound browser, in the left window, which allows for sound file search, and personal sound file upload. In the left section, users can also show the script browser.

No account is required to create projects or view existing projects. EarSketch comprises different elements: a curriculum, a digital audio workstation (or DAW), a code editor and console, and a sound browser.

Dissolves The dissolve is probably the most used transition in video editing. Also known as a cross-dissolve, this effect layers two clips together so there is a seamless transition from one picture to another. You see it everyday and probably don’t even notice it: and that’s the point.

Explanation:

EarSketch is web-based, which means users can access it with their web-browsers, and with no installation. No account is required to create projects or view existing projects. EarSketch comprises different elements: a curriculum, a digital audio workstation (or DAW), a code editor and console, and a sound browser.

Other Questions
Which of these countries uses an alphabet that is most UNLIKE the English alphabet?A)FranceB)ItalyEliminateC)RussiaD)Spain 27 yd36 ydWhat is the length of the hypotenuse?C-yards Need help with Pythagorean Theorem a. 20 moles of NH3 are needed to produce how many moles of H2O? b. How many moles of N2 will be produced if 3.5 moles of O2 react? blank knew a shortcut so she got to the party before the rest of her friends, Add a Comma Don't Add a Comma please answer and fast i will give 50 points and brainliest!!! i am in a test so if you dont know please don't answer. please help me please i really need help please help me please please Which property is shown here?4 + (5 + 3a) = (4 + 5) + 3aO Distributive PropertyO Associative Property of AdditionO Commutative Property of MultiplicationO Commutative Property of AdditionO Associative Property of Multiplication> Next Question Properties of elements table Assume that Wal-Mart Stores, Inc. has decided to surface and maintain for 10 years a vacant lot next to one of its stores to serve as a parking lot for customers. Management is considering the following bids involving two different qualities of surfacing for a parking area of 12,000 square yards. Bid A: A surface that costs $5.75 per square yard to install. This surface will have to be replaced at the end of 5 years. The annual maintenance cost on this surface is estimated at 25 cents per square yard for each year except the last year of its service. The replacement surface will be similar to the initial surface.Bid B: A surface that costs $10.50 per square yard to install. This surface has a probable useful life of 10 years and will require annual maintenance in each year except the last year, at an estimated cost of 9 cents per square yard. Required: Prepare computations showing which bid should be accepted by Wal-Mart. You may assume that the cost of capital is 9%, that the annual maintenance expenditures are incurred at the end of each year, and that prices are not expected to change during the next 10 years. After the French and Indian War, France _____.developed a sense of unitylost nearly all of its North American possessionswas left with a large debtfought colonists who settled the Ohio River valley Cynthia invests some money in a bank which pays 5% compound interest per year.She wants it to be worth over 8000 at the end of 3years.What is the smallest amount to nearest pound she can invest? On January 1, 2021, Blossom Corporation signed a 10-year noncancelable lease for certain machinery. The terms of the lease called for Blossom to make annual payments of $185015 at the end of each year for 10 years with the title passing to Blossom at the end of this period. The machinery has an estimated useful life of 15 years and no salvage value. Blossom uses the straight-line method of depreciation for all of its fixed assets. Blossom accordingly accounted for this lease transaction as a financial lease. The lease payments were determined to have a present value of $1241466 at an effective interest rate of 8%. With respect to this lease, Blossom should record for 2021 a. interest expense of $82764 and amortization expense of $69431. b. interest expense of $99317 and amortization expense of $82764. c. interest expense of $83317 and amortization expense of $124147. d. lease expense of $99317. What is the most pressing issue facing our current educational system? Why do you suppose the British had less direct control over countries around the world in 2019 than it did in 1919? provide three examples on measuring and recording your heart rate before and after exercising Find the circumferences of both circles 11. Which of the following would be the best way to mitigate (reduce the impact of) deforestation?Employ clear cutting harvest techniques that are more sustainable.Stimulate intensive agricultural production of native vegetation close to villages.Grow more diverse timber products to increase economic value in an area.Replant and protect trees in areas that have been previously cleared. What was required before Texas could be annexed by the United States?.The debts Texas acquired had to be paid.Both congresses had to approve annexation.Texas had to agree to abolish slavery.Mexico had to officially approve the agreement. Where is all my ARMY out there!!!