In this exercise, you will develop a Python program where the main function should look like this: SayHello() and SayGoodbye(). You must define the functions SayHello...
In this exercise, you will develop a Python program where the main function should look like this: SayHello("John") and SayGoodbye(). You must define the functions Sa...
In this exercise, you will develop a Python program where the main function should define and call a sum function that accepts two integers as parameters and returns ...
In this exercise, you will develop a Python program where the main function should look like this: def main(): print("\"Hello, how are you\" contains {0} spaces".form...
In this exercise, you will develop a Python function named "get_int" that displays the text received as a parameter, prompts the user for an integer number, repeats i...
In this exercise, you will develop a Python function that can center the text on the screen (assuming a screen width of 80 characters) and then underline it with hyph...
In this exercise, you will develop a Python program to calculate the sum of the elements in an array. The main function should look like this: def main(): example = [...
In this exercise, you will develop a Python function named "double" to calculate and return an integer that is twice its input. This exercise is perfect for pr...
In this exercise, you will develop a Python function named "double_value" to calculate the double of an integer number and modify the data passed as an argument. Sinc...
In this exercise, you will develop a Python program with a function called "swap" to exchange the values of two integer variables, which are passed by reference. This...
In this exercise, you will develop a Python program with a function named "power" to compute the result of raising one integer to the power of another positive intege...
In this exercise, you will develop a Python program with a function that computes the result of raising one integer to the power of another integer (e.g., 5 raised to...
In this exercise, you will develop a Python program that uses a recursive function to determine a number in the Fibonacci sequence. In this series, the first two numb...
In this exercise, you will develop a Python program with a function called "change_char" to alter a character at a specific position (0-based index) in a string, repl...
In this exercise, you will develop a Python program with a function called "is_prime" that takes an integer as input and returns True if the number is prime, or False...
In this exercise, you will develop a Python program named "sum" that takes two integer numbers from the command line and prints their sum. This exercise is per...
In this exercise, you will develop a Python program with a function named "sum_digits" that takes a number as input and returns the sum of its digits. This exercis...
In this exercise, you will develop a Python program with a recursive function to compute the factorial of a given number. The factorial of a number is defined as: 𝑛...
In this exercise, you will develop a Python program named "reverse" that takes multiple words from the command line and prints them in reverse order. This exercise...
In this exercise, you will develop a Python program with a function named "get_int" that displays the text received as a parameter, prompts the user for an integer, a...
In this exercise, you will develop a Python program to enhance the "tasks database" by dividing it into multiple functions for better organization and readability. Th...
In this exercise, you will develop a Python program containing a function that accepts a list of floating-point numbers as input and returns the maximum value within ...
In this exercise, you will develop a Python program that calculates the factorial of a given number using an iterative (non-recursive) method. This exercise is...
In this exercise, you will develop a Python program with a function called 'WriteTitle' that displays a text in uppercase, centered on the screen with extra spaces an...
In this exercise, you will develop a Python program that prompts the user to provide a title via the command line (using the previously defined WriteTitle function). ...
In this exercise, you will develop a Python program that defines a function to count the number of numeric digits and vowels in a given string. The function should ta...
In this exercise, you will develop a Python program that includes a function to determine if a given character is alphabetic (from A to Z). This exercise is pe...
In this exercise, you will develop a Python program that defines a function to check if a string represents an integer value. This exercise is perfect for prac...
In this exercise, you will develop a Python program that performs basic arithmetic operations such as addition, subtraction, multiplication, or division based on comm...
In this exercise, you will develop a Python program that performs arithmetic operations such as addition, subtraction, multiplication, or division by analyzing comman...
In this exercise, you will develop a Python program that defines a function to find the smallest and largest numbers in a list. The function should accept the list as...
In this exercise, you will develop a Python program that utilizes recursion to reverse a sequence of characters. This exercise is perfect for practicing functi...
In this exercise, you will develop a Python program that defines a function to print a filled rectangle on the screen, where the dimensions (width and height) are pro...
In this exercise, you will develop a Python program with an iterative function to check if a string is a palindrome (symmetric). This exercise is perfect for p...
In this exercise, you will develop a Python program with a recursive function to determine if a string is symmetric (a palindrome). This exercise is perfect fo...
In this exercise, you will develop a Python program with a function called "FindRange", where the user is prompted to input a minimum value (a number) and a maximum v...
In this exercise, you will develop a Python program with two functions, Multiply and MultiplyRecursive, to compute the product of two numbers by using addition. The f...