The program should prompt the user for a filename and input the lines of text into a list. The program then enters a loop in which it prints the number of lines in the file and prompts the user for a line number.
new to python programming, enrolled online class and feel stuck on exercise5.2. Here are some hints to do exercise5.2 python programming 4 every body. musi...
Assignment: Write a program that asks the user to enter a number of seconds and then prints the same amount of time in days, hours, minutes, and seconds.
Trying to learn Python. Been at this one for hours. What I am trying to do is to enter a few numbers (for example 7, 4, 6, 10, & 2) and then print the maximum and minimum. My code works perfectly for every number I enter that is 1-9. Once I hit 10 or higher it goes wonky.
The program should prompt the user for a filename and input the lines of text into a list. The program then enters a loop in which it prints the number of lines in the file and prompts the user for a line number.
Explain the difference between variables and constants. Using Table 2-1, explain the concept of data types and introduce the eight primitive data types. Suggest uses for the primitive types. Define a primitive type and what it means in Java.
5.2 Write a program that allows the user to navigate the lines of text in a file. The program should prompt the user for a filename and input the lines of text into a list. The program then enters a loop in which it prints the number of lines in the file and prompts the user for a line number.