Write a Python program to solve (x + y) * (x + y). Write a Python program to display your details like name, age, address in three different lines. Write a Python program to add two objects if both objects are an integer type. Write a Python program that will return true if the two given integer values are equal or their sum or difference is 5. However, if the sum is between 15 to 20 it will return 20. Write a Python program to sum of two given integers. However, if two values are equal sum will be zero. Write a Python program to sum of three given integers. Write a Python program to get the least common multiple (LCM) of two positive integers. Write a Python program to compute the greatest common divisor (GCD) of two positive integers. Write a Python program that will accept the base and height of a triangle and compute the area. Write a Python program to print out a set containing all the colors from color_list_1 which are not present in color_list_2. Write a Python program to print all even numbers from a given numbers list in the same order and stop the printing if any numbers that come after 237 in the sequence. Write a Python program to concatenate all elements in a list into a string and return it. Write a Python program to create a histogram from a given list of integers. Write a Python program to check whether a specified value is contained in a group of values. Write a Python program to test whether a passed letter is a vowel or not. Return the n copies of the whole string if the length is less than 2. Write a Python program to get the n (non-negative integer) copies of the first 2 characters of a given string. Write a Python program to count the number 4 in a given list. Write a Python program to find whether a given number (accept from the user) is even or odd, print out an appropriate message to the user. Write a Python program to get a string which is n (non-negative integer) copies of a given string. If the given string already begins with "Is" then return the string unchanged. Write a Python program to get a new string from a given string where "Is" has been added to the front. Write a Python program to calculate the sum of three given numbers, if the values are equal then return three times of their sum. Write a Python program to test whether a number is within 100 of 1000 or 2000. Write a Python program to get the difference between a given number and 17, if the number is greater than 17 return double the absolute difference. Write a Python program to get the volume of a sphere with radius 6.ġ6. Write a Python program to calculate number of days between two dates. Write a Python program to print the following 'here document'. Write a Python program to print the calendar of a given month and year.ġ3. Return the absolute value of the argument.ġ2. Write a Python program to print the documents (syntax, description etc.) of Python built-in function(s). Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn. Sample Output : The examination will start from : 11 / 12 / 2014ġ0. Write a Python program to display the examination schedule. Write a Python program to display the first and last colors from the following list. Write a Python program to accept a filename from the user and print the extension of that. Write a Python program which accepts a sequence of comma-separated numbers from user and generate a list and a tuple with those numbers. Write a Python program which accepts the user's first and last name and print them in reverse order with a space between them. Write a Python program which accepts the radius of a circle from the user and compute the area. Write a Python program to display the current date and time.Ĥ. Write a Python program to get the Python version you are using. Twinkle, twinkle, little star, How I wonder what you are"Ģ. Sample String : "Twinkle, twinkle, little star, How I wonder what you are! Up above the world so high, Like a diamond in the sky. Write a Python program to print the following string in a specific format (see the output).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |