Question: 1- Write a Python scripts which asks the user Name, School number and Date and prints them as follows: Name: Paul Smith School No: 9001212378
1- Write a Python scripts which asks the user Name, School number and Date and prints them as follows: Name: Paul Smith School No: 9001212378 Date: 02/12/2020 Hint: Use "input' function to get user inputs. 2. Write a Python code which requests a number from the user and prints whether it is an odd or even number 3. Write a Python code which asks the user for integer and print whether it is divisible by 7 or not. 4. Write a Python program that accepts a sentence from the user and prints the number of only letters also excluding spaces 5- Ask the user for a string. Print the odd number index letters in the string with upper case and even ones with lower case letters. 6. Ask the user for a number n which is then used to find the Fibonacci sequence up to n. Write a function named Fibonacci that calculates the Fibonacci sequence 7. Write a function to test whether entered number is an Armstrong number or not. 8- Write a Python class which has two methods get String and print_String.get_String accepts a string from the user and print_String prints the string in upper case! 9- Write a Python code to print a dictionary where the keys are numbers between 1 and 20 and the values are square of keys (use loop). 10. Write a Python Program to sort alphabetically the words form a string provided by the user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
