Fruit shop management system
Write a Python program with functions to add stock, sell fruit and show the inventory of a fruit...
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Write a Python program with functions to add stock, sell fruit and show the inventory of a fruit...
Write a Python function that returns the sum of two numbers, and show the difference between print and...
Write a Python function that accepts a username and password and reports whether login succeeded. Step-by-step explanation, colour-coded code and real output.
Write a Python function that returns the odd numbers from 1 to 100. Step-by-step explanation, colour-coded code and real output.
Write a Python function that returns the prime numbers from 1 to 100. Step-by-step explanation, colour-coded code and real output.
Write a Python function that maps the first and last letter of each word to the word. Step-by-step explanation, colour-coded code and real output.
Write a Python function that returns a new dictionary with every value squared. Step-by-step explanation, colour-coded code and real output.
Write a Python function that returns the characters that appear more than once. Step-by-step explanation, colour-coded code and real output.
Write a Python function to get the unique values of a list in order. Step-by-step explanation, colour-coded code and real output.
Write a Python function that checks whether any two numbers in a list add up to 10. Step-by-step explanation, colour-coded code and real output.
Write a Python function that returns the first n Fibonacci numbers starting 1, 1. Step-by-step explanation, colour-coded code and real output.
Write a Python function to get the factorial of a number. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.