Top answers


How do you write code to implement a recursive fibonacci algorithm?

def recursiveFib(x): x = int(x) if x == 0: return (0) elif x == 1 or x == 2: return (1) elif x > 2: return (recursiveFib(x-2)+recursiveFib(x-1)) print ("Please enter a number of fibonacci numbers req...
JL
Answered by Jazir L. • Python tutor
1913 Views

How do I show passion for the subject(s) that I am applying for without using the word ‘passion’?

You show how much you love the subject through the way that you talk about it and the actions you have taken to further your knowledge of the degree that you will be studying. You explain why you like the su...
JB
10464 Views

Write a Python script to take a product name as input and then automatically google search reviews for it and open the top 3 search results in different tabs

#! python3 import bs4import webbrowser as wbimport requests as rq print('Enter the product name: ')product = input() print("Searching")print('opening tabs')res = rq.get('https://www.google.co.uk/se...
MA
Answered by Mankaran A. • Python tutor
1918 Views

Create an algorithm that can be used as a guessing game. Make sure to import random at the start.

print("Welcome to the Guessing Game. A random number will be generated between 1 and 10000, which you will have to guess. Hints will be provided, indicating whether the number is higher or lower than yo...
SM
Answered by Sharaf M. • Python tutor
3310 Views

How do you impress at an Oxbridge interview?

The key thing Oxbridge interviewers want to see is that you are teachable. They don't expect a finished product. They are looking for potential. They are looking for someone willing to think through problems...
DW
1889 Views