Top answers


What do I write about in my personal statement?

The one thing a personal statement shouldn't be is a boring list of your achievements. As extensive and impressive as they may be, you should always find a more interesting way to entice in the reader and te...
RS
2763 Views

Demonstrate a recursive solution to calculate the factorial of a number

Recursion is simply calling a function within itself, this allows for smaller and more implicit code, effective for larger projects.The factorial of a number e.g. 4!Would be 1 2 3 4, and the python code woul...
DP
Answered by Darshan P. • Python tutor
1467 Views

What should I be doing to prepare for my multiple mini interview (MMI)?

This is a great question, there are a few things you need to consider for your MMI:Presentation is key, make sure you're dressed smartly and your well groomed. You want to give a professional impression from...
CH
1480 Views

What is the difference between a cycle "if" and "while"?

Both commands are used to run a chunk of code that satisfies the condition inserted . The main difference is that while is a loop , i.e. it is run until the condition is satisfied, while if stops in every ca...
FN
Answered by Federico N. • Python tutor
1968 Views

Write a recursive function that takes any integer n and prints the nth Fibonacci number.

A recursive function is a function that can call itself. Fibonacci numbers are defined:F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1, giving the sequence 0, 1, 1, 2, 3, 5, 8, 13, ... which you're probabl...
AG
Answered by Andrew G. • Python tutor
2333 Views