Basic: Remove Vowels

Question: Given a string as an input, please create a function that would remove all vowels (‘a’, ‘i’, ‘u’, ‘e’, ‘o’) from that string. For simplicity, consider all characters in the input string are in lower case. Answer: 👍 Have fun while coding with Python! 👌 Please subscribe to receive notifications on future challenges. 💬 If you … Read more

Basic: Prime Numbers

Question: Please implement a function to check whether a number is a prime number or not. A prime number is a number greater than one that can be divided (without leaving any reminder) only by one and the number itself. The function simply has one parameter (an integer) and a boolean input stating whether the … Read more

Python Basic Controls

Print statement: If statement: If-then-else statement: For-loop statement: The third parameter in the range function is the step counter, by default it is 1. We can count backward by specifying step -1 While-loop statement Create a function 👍 Have fun while coding with Python! 👌 Please Subscribe to not miss any future posts 💬 If … Read more