Write a program that accepts a comma separated sequence of words as input and prints the words in a comma-separated sequence after sorting them alphabetically. Note: In case of input data being supplied to the question, it should be assumed to be a console input in a comma-separated form.ĭimensions= Then, the output of the program should be: Suppose the following inputs are given to the program: The element value in the i-th row and j-th column of the array should be i*j. Write a program which takes 2 digits, X,Y as input and generates a 2-dimensional array. If the output received is in decimal form, it should be rounded off to its nearest value (for example, if the output received is 26.0, it should be printed as 26) Let us assume the following comma separated input sequence is given to the program: Write a program that calculates and prints the value according to the given formula:įollowing are the fixed values of C and H:ĭ is the variable whose values should be input to your program in a comma-separated sequence. Use _init_ method to construct some parameters PrintString: to print the string in upper case.Īlso please include simple test function to test the class methods. GetString: to get a string from console input Write a program which accepts a sequence of comma-separated numbers from console and generate a list and a tuple which contains every number.ĭefine a class which has at least two methods: and then the program should print the dictionary. With a given integral number n, write a program to generate a dictionary that contains (i, i*i) such that is an integral number between 1 and n (both included). In case of input data being supplied to the question, it should be assumed to be a console input. Suppose the following input is supplied to the program: The results should be printed in a comma-separated sequence on a single line. Write a program which can compute the factorial of a given numbers. The numbers obtained should be printed in a comma-separated sequence on a single line. Write a program which will find all such numbers which are divisible by 7 but are not a multiple of 5, He is supposed to solve the problem using several Python standard packages and advanced techniques. He should use Python to solve more complex problem using more rich libraries functions and data structures and algorithms. The answers cannot be directly be found in the textbooks. He should be able to solve problems which may involve 3 or 3 Python classes or functions. Level 2 Intermediate means someone who has just learned Python, but already has a relatively strong programming background from before. Normally, the answers could directly be found in the textbooks. He can solve some problems with 1 or 2 Python classes or functions. Level 1ěeginner means someone who has just gone through an introductory Python course. 100+ Python challenging programming exercises
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |