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
kaheart [24]
4 years ago
11

Can someone help me out with this one? I'm not sure why my code is not working

Computers and Technology
1 answer:
UNO [17]4 years ago
5 0

Answer:

Add this statement at the end of your steps() function

return ""

This statement will not print None at the end of steps.

Explanation:

Here is the complete function with return statement added at the end:

def steps(number):  # function steps that takes number (number of steps to print) as parameter and prints the steps specified by number

   i = 1  #assigns 1 to i

   while i < number + 1:  

       string = str(i) * 3  #multiplies value of i by 3 after converting i to string

       string1 = str(string)  # stores the step pattern to string1

       if i != 0:  # if the value of i is not equal to 0

           string1 = (i * 4*' ' + "\b" + "\b" + "\b" + "\b") + string  #set the spaces between steps

       elif i == 1:  # if value of i is equal to 1

           string1 = string  #set the string to string1

       print(string1)  # print string1

       i = i + 1  # increments i at each iteration

   return "" #this will not print None at the end of the steps and just add a an empty line instead of None.

Screenshot of the corrected program along with its output is attached.

You might be interested in
Please help I need some one that knows about the article Disney Imagineer because I wasn't in school today so please help me wri
NISA [10]

Answer:

I don't know much but I looked up some stuff about the Article.

River of the light-

When park-goers swarm Walt Disney World's Animal Kingdom later this month, Joe Rohde will be paying close attention.

The executive designer and vice president of Walt Disney Imagineering Creative has spent the last eight years overseeing the expansion of Disney's Animal Kingdom park, including its soon-to-be unveiled evening spectacle, "Rivers of Light." Rohde, a Disney veteran who said he started “at the bottom of the design ladder” in 1980, has also been leading the charge on Disney's "Avatar"-themed land, based on James Cameron's 2009 top-grossing film, which is slated to debut in 2017. The first of four planned sequels to Cameron's movie based on the fantastical world of Pandora will hit theaters a year later.

Rohde has overseen the development of Disney's "Avatar"-inspired land, seen in this illustration, which is scheduled to open at Animal Kingdom in 2017.-

Rohde likened the process of developing and constructing a major attraction to filming a major blockbuster film. The whole investment -- from "the morning of conceptualization to opening day" can take anywhere from four to five years, Rohde told ABC News. And in the case of Animal Kingdom, incorporating live animals can lead to other challenges.

"The inclusion of live animals changes design standards ... but it brings realism to design," he said in a phone interview. "Nature is a supreme, immutable value."

The millions of visitors who travel to Disney’s theme parks around the world -- more than 134 million in 2014, according to the Themed Entertainment Association (TEA), an industry trade group -- are not privy to the trials and tribulations of what it takes to bring an idea to fruition at Disney. Imagineers, as they're referred to at Disney, prefer it that way.

"We try to be invisible," Theron Skees, executive creative director for Walt Disney Imagineering, said in an interview.-

Skees started his Disney career painting artificial grottos and tunnels at Disneyland Paris' Pirates of the Caribbean attraction. Skees, who previously worked as a sculptor and set designer in film and commercials, has lived on three continents as a Disney imagineer, tasked with bringing the visions and interpretations of Disney characters and stories to life. The imagineering division, one of the most competitive and challenging practices within the Disney universe, has the sole responsibility of delivering "the magic" that visitors seek year after year. There are at least 1,500 imagineers currently in the company, according to a Disney spokesperson, with 140 disciplines within the group.

"There's the technical know-how, the creative vision, the planners and the operators," Skees said. "Imagineering is a pretty specialized group that requires a specialized mindset."-

And loners need not apply.

"You have to communicate and get an idea out there, whether that's painting, building or drawing models," Rohde added. "The ability to collaborate as a group is a must."

Skees reiterates that every imagineer is encouraged to submit ideas -- whether that’s for a new roller coaster, a live performance or costume design at one of the theme parks, hotels or Disney cruises.

“All ideas go through a process and it’s not exclusive to one person,” he noted.

Ideas can come from anywhere. Rohde immerses himself in books -- non-fiction, art history, neurology -- and vows to plow through the 35 stacked next to his bed, soon-to-be additions to his personal library of 5,000 books.

To be successful in this career “you need to find smart people to work under you and to read a lot,” he explained. Traveling the world? A necessity.

“We’re not making two-dimensional products. You need to know what places are really like,” he added.

Disney is the parent company of ABC News.

Hope you can get your work in on time.

7 0
3 years ago
Read 2 more answers
Marie wanted to make sure that the information in her presentation was well organized. She should _____.
Sauron [17]
Marie could either ask a friend or her parents to peer edit it and tell her if its good enough or if she should work on it more.<span />
4 0
3 years ago
5. This is a variable that controls the number of iterations performed by a loop. a. loop control variable b. accumulator c. ite
NNADVOKAT [17]

what is the ropeak??need only one Ans the 2nd Ans will be reported.

4 0
4 years ago
What factors are most important when planning for disaster and recovery?
BARSIC [14]

Answer:

1 Procure sturdy devices. 2 Deleting old backups. 3 Physically distant backup location. 4 Regular backups.

Explanation:

mark brainliest pls am dying for it ಥ‿ಥ

7 0
3 years ago
Linux - Ubuntu 16.4:
babymother [125]

I believe you have to install locate with "sudo apt-get install locate" and type "locate 'filename'"

6 0
3 years ago
Other questions:
  • Choose the true statement below. a. The content that displays in the browser is contained in the head section. b. The content th
    13·1 answer
  • A cloud service provider uses the Internet to deliver a computing environment for developing, running, and managing software app
    11·1 answer
  • Five indicators of computer illiteracy​
    13·1 answer
  • You are troubleshooting a connectivity problem in your corporate network and want to isolate the problem. You suspect that a rou
    6·1 answer
  • How do particles move at higher temperatures compared to how they move at lower temperatures?
    10·1 answer
  • Is LTE faster than 4G?
    8·1 answer
  • In a period of steep increases in interest rates, which issuer is most likely to be negatively affected? A Trucking company B Ut
    9·2 answers
  • g (Locate the largest element) Write the following method that returns the location of the largest element in a two-dimensional
    11·1 answer
  • if you upgrade your memory but notice the RAM count does not reflect the additional memory, what should you do ?
    5·1 answer
  • Write a function where you are given: a list of numbers "nums", a number to search for "num". Return the index of "num" in the l
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!