Problem10
Write a program that displays a plot of the functions $x$, $x^2$ and $2^x$ in the range[0,4].
s
My solutions to the Python Programming and Scripting Problem Set.
Write a program that displays a plot of the functions $x$, $x^2$ and $2^x$ in the range[0,4].
Write a program that reads in a text file and outputs every second line. The program should take the filename from an argument on the command line.
Write a program that prints all numbers between 1,000 and 10,000 that are divisible by 6 but not 12.
Problem 1: Write a program that asks the user to input any positive integer and outputs the sum of all numbers between one and that number.
Write a program that outputs today’s date and time in the format “Monday, January 10th 2019 at 1:15pm”.
Write a program that that takes a positive floating point number as input and outputs an approximation of its square root.
Write a program that takes a user input string and outputs every second word.
Write a program that asks the user to input a positive integer and tells the user whether or not the number is a prime.
Write a program that asks the user to input any positive integer and outputs the successive values of the following calculation. At each step calculate the next value by taking the current value and, if it is even, divide it by two, but if it is odd, multiply it by three and add one. Have the program end if the current value is one.
Write a program that outputs whether or not today is a day that begins with the letter T.