1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
QveST [7]
2 years ago
8

Write a program that first reads in the name of an input file, followed by two strings representing the lower and upper bounds o

f a search range. The file should be read using the file.readlines() method. The input file contains a list of alphabetical, ten-letter strings, each on a separate line. Your program should output all strings from the list that are within that range (inclusive of the bounds). Ex: If the input is: input1.txt ammoniated millennium and the contents of input1.txt are: aspiration classified federation graduation millennium philosophy quadratics transcript wilderness zoologists the output is: aspiration classified federation graduation millennium
Computers and Technology
1 answer:
xxTIMURxx [149]2 years ago
3 0

Answer:

Python code explained below

Explanation:

f = open(input())

#loading the file, which will serve as the input

s1 = input()  

s2 = input()

lines = f.readlines()

for line in lines:

   line = line.strip(

# strip() removes characters from both left and right

   if s1 <= line <= s2:  #setting the range

       print(line)

f.close()

#closing the file

You might be interested in
Of the following occupations, which is predicted to have the greatest job growth?
klasskru [66]

Answer:

"Web designer" is the appropriate answer.

Explanation:

  • If we follow the market pattern, the number of purchases made by online shopping will continue to rise from 2002 to 2018 as well as the times to obtain no indication of slowing or stopping.
  • Because of the same, web designers are expected to have the greatest increase in jobs, as it is very important to customize the website so that online customers can appear more interactive.

So that the above is the correct answer.

6 0
3 years ago
Read 2 more answers
HELP! I am trying to get my google account back for school and business, can someone help?
yawa3891 [41]

does it say its deleted if so make a new account and the apps and website put in your email and passwords if not then put in your pass ord and email to get it back what device u have.

5 0
3 years ago
You should reach across something to lift a load is this true or false
Grace [21]

Answer:

False. Never reach across a load when you're trying to lift it.

3 0
3 years ago
A digital _ Is a good place for students to read an out of print book
bonufazy [111]

Answer:

Library

Explanation:

7 0
3 years ago
Read 2 more answers
Nunya is a computer software company that employs highly intelligent, but somewhat unusual people. Every Friday, free lollipops,
Rina8888 [55]

Answer:

Stories

Explanation:

Storytelling is regarded as being on the core of culture. Stories is a way of passing history down generations after generations, and how customs are being shared. It also denotes how people adopt a tradition and these traditions never change. The stories told by a group indicates the values of its culture. In the question, informing employees about founders is like telling them stories to pass customs, values, and tradition.

5 0
3 years ago
Other questions:
  • ) The ________ displays a text box and button for users to browse, select, and upload a file. (Points : 3)
    13·1 answer
  • The programs that provide the infrastructure and hardware control necessary for the computer and its peripheral devices are call
    11·1 answer
  • In ______ each station is assigned a code; using a special coding scheme, stations send data over the entire bandwidth of the ch
    14·1 answer
  • Using a conversation voice is part of:
    9·1 answer
  • What is HTML? (list down any 5 points)
    12·1 answer
  • I need help ASAP please and thank you!
    6·1 answer
  • Trace the evaluation of the following expressions, and give their resulting values. Make sure to give a value of the appropriate
    11·1 answer
  • Define a function compute_gas_volume that returns the volume of a gas given parameters pressure, temperature, and moles. Use
    12·1 answer
  • Consider the following method, which is intended to count the number of times the letter "A" appears in the string str.
    13·1 answer
  • The contrast ratio of green-60 text on a yellow-10 background is ___ to 1.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!