# Is my solution to Homework 2.4 incorrect

 0 I am getting the required result for the following code. But still I have been given wrong. what went wrong? def countdown(n): i = 1 while i <= n: print n n = n - 1 return 'Blastoff!' print countdown(4)  asked 08 Mar '12, 11:18 RAJESH KUMAR... 27●5 accept rate: 0% Marek Bálint 4.7k●16●42●85

 0 We were asked to write a procedure that prints the numbers from n to 1 followed by the word "Blastoff!". You have written a procedure that prints the numbers and returns the word "Blastoff!". If it's called as the object of a print command, the output will look similar on the screen. But it's really not the same thing at all. answered 08 Mar '12, 11:20 Lisa McLean 3.4k●14●35
 0 You returned "Blastoff!" instead of printing it. The countdown function should print everything without the use of a print statement to call it. ex: countdown(3) 3 2 1 Blastoff!  answered 08 Mar '12, 11:22 Marc-Andre P... 87●1●7
Question text:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "Title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

×15,253
×1,718
×160
×69
×3