1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sergij07 [2.7K]
3 years ago
10

Write a function writel that will write the length of a side of a square. If only one argument is passed to the function, it is

the length, and the output will go to the Command Window. If two arguments are passed, however, the first argument will be the length and the second argument will be the file identifier for an output file to which the length should be printed.
Computers and Technology
1 answer:
Levart [38]3 years ago
7 0

def writel(length, file_name = ""):

   if file_name!="":

       f = open(file_name, "w")

       f.write(str(length))

       f.close()

   else:

       print(str(length))

writel(3, "FileName.txt")

I hope this helps!

Remember, you must have the file created prior to running this program. Best of luck.

You might be interested in
Suppose that a queue is implemented using a circular array of size 12. What is the value of last after the following operations?
otez555 [7]

Answer:

10

Explanation:

An enqueue operation is a function that adds an element(value) to a queue array. A dequeue operations removes an element from a queue array. Queue arrays follow a first-in-first-out approach, so elements that are first stored in the queue are removed/accessed first(enqueue operations add elements at the rear of the queue array).

The following operations leave 10 elements in the queue of array size 12 after its done:

10 enqueue operations= adds 10 elements

5 dequeue operations= removes 5 elements( 5 elements left in queue)

6 enqueue operations= adds 6 elements(11 elements in queue)

10 dequeue operations= removes 10 elements(1 element left in queue)

8 enqueue operations= adds 8 elements(9 elements in queue)

2 dequeue operations= removes 2 elements(7 elements left in queue)

3 enqueue operations= adds 3 elements(10 elements in queue)

Therefore there are 10 elements in the queue after enqueue and dequeue operations.

8 0
3 years ago
Select the processes that help to create a program.
Marina86 [1]

Debugging ..............

4 0
3 years ago
when you enter a formula in a cell the result of the calculation displays in a cell. how do views of formula after entering it?
Vika [28.1K]

<u>Answer:</u>

Any formula entered in the excel sheet should begin with “=”. Otherwise excel reads that to be a normal text and it will not process the further to get a “result”.

A formula can be entered either in <em>the cell or in the “formula bar”</em>. Once a formula is entered and an enter key is encountered, the result will be displayed in the <em>cell and connected formula</em> gets displayed in the Formula bar.

When we move the focus over that cell it <em>displays only content and not formula,</em> because formula gets displayed only in the “formula bar”.

7 0
4 years ago
What is the best summation of the main idea in Andrew Blum’s speech, "Discover the Physical Side of the Internet"? Question 10 o
rewona [7]

Answer:

c) We should be aware of the network and geographic presence behind our internet access rather than taking it for granted.

Explanation:

Andrew Blum’s speech is about the physical world and the size of the internet, he spent more time on the computer and cell phone than in the real world, and he had an issue with his internet, and the technician told him, squirrel has bittern your internet.

This can mean that the internet can be something complex and a huge thing, but can be damage for a squirrel, can be something simple.

6 0
3 years ago
terms found in provider documentation (e.g., difficult, extensive, or unusual) would support adding modifier to a cpt code.
Oksi-84 [34.3K]

The terms found in provider documentation (e.g., difficult, extensive, or unusual) would support adding modifier -22 to a cpt code.

<h3>What are cpt code?</h3>

Current Procedural Terminology (CPT) is known to be a kind of  a medical code set that is known to be used to report any form of medical, surgical, and diagnostic work and services to firms such as physicians, health insurance firms and accreditation firms.

Therefore, Note that the terms found in provider documentation (e.g., difficult, extensive, or unusual) would support adding modifier -22 to a cpt code.

Learn more about documentation from

brainly.com/question/968907

#SPJ1

Terms found in provider documentation (e.g., difficult, extensive, or unusual) would support adding modifier __________ to a CPT code.

3 0
2 years ago
Other questions:
  • How can you create the first row of the table as the header of the table
    15·2 answers
  • Which of the following things would you access from the Program &amp; Courses page? Course descriptions Tutorial videos Account
    7·1 answer
  • Which statement reflect a culture that value collectivism
    7·1 answer
  • Arrange these steps of creating a presentation in the correct order.
    15·2 answers
  • Lenders always accept applications for credit
    10·1 answer
  • Write a program that gets a list of integers from input, and outputs the integers in ascending order (lowest to highest). The fi
    5·1 answer
  • What type of address uses a number that uniquely identifies each computer?
    6·2 answers
  • What are the uses of DVD Ram​
    12·2 answers
  • What feature is required to track customer search terms on a website?
    9·1 answer
  • Distinguish<br> between formal and Informal<br> Information System<br> Information systems
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!