Answer:
None of the options is correct.
Explanation:
One of the simplest statements that you can write in Python is a print statement, which causes a message to be displayed on the screen. For example, the following statement causes the message Python programming is fun! to be displayed:
print 'Python programming is fun!'
Notice that after the word print, the Python programming is fun! was written inside a set of single-quote marks. The quote marks are necessary, but they will not be displayed. They simply mark the beginning and the end of the text that we wish to display.
Here is an example of how you would type this print statement at the interpreter’s
prompt:
>>> print 'Python programming is fun!'
After typing the statement you press the Enter key and the Python interpreter executes the statement, as shown here:
>>> print 'Python programming is fun!'
Python programming is fun!
>>>
Thus, the correct way to write the codes in the question is:
print 'Programming is fun'
print 'Python'
print 'Computer Science'
I'm going to guess slide, like Google slides
Answer and Explanation:
Recursion is a technique to solve a problem where a function in a program calls itself at specified times.
The three situations when recursion is the single option available to solve a problem are:
- When a task is required to repeat itself without the use of loop.
- When we want to take a print of the result of the functions used in the program which calls itself in the order which is reversed. This makes use of stack.
- Where the solutions are provided such that it follows the order in solving from the inner most to the outer extreme level of the tasks. As in case of recursion in deleting the files and the directories, files are deleted followed by directories.