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
snow_lady [41]
2 years ago
9

Write a program that takes a string as an input. If the string entered is equal to

Computers and Technology
1 answer:
Ivenika [448]2 years ago
3 0

The program could be written using a python script.

<h3>Python script on string operation</h3>

The program takes a string as an input. First, declare a variable for the input:

var = str()

#The above code will ask for a string to be inputted

Next would be to condition the script in a particular direction using the 'if' statement. That is, a Boolean function.

if var ==('chicken'):

#The above code will compare the inputted string to the word 'chicken'.

  print("This is equal")

#The screen will display 'This is equal' if the inputted stringis the same as 'chicken'.

else:

  print("This is not equal")

#The screen will display "This is not equal" if the inputted string is not the same as 'chicken'.

In summary, the code goes thus:

var = str()

if var ==('chicken'):

   print("This is equal")

else:

   print("This is not equal")

More on python scripts can be found here: brainly.com/question/14378173

#SPJ1

You might be interested in
A researcher makes a _____ about another population when she makes a generalization.
Katena32 [7]
Prediction I believe is the answer mark me brainliest please
5 0
3 years ago
Describe personal computer skills using three adjectives?
Volgvan

Answer:

proficient with Microsoft word Excel and PowerPoint

Explanation:

compost and send over 150 images microsoftop creating and the formatting simple office budget speed sheets on Microsoft Excel Bros and its documents Microsoft word

5 0
2 years ago
Read 2 more answers
How is functional text used in everyday life
expeople1 [14]
Cause you read every day
5 0
3 years ago
Explain the process of creating a linocut. How is it effective? Why is it criticized?
tankabanditka [31]
So making a linocut basically your taking your design and using the negative space to paint the same picture over and over its is a very easy and effective method how every its main drawback is unless you make a bunch of different ones you stuck with one design 
3 0
3 years ago
Read 2 more answers
What is the difference between Notepad and WordPad?is one more adavnced?if so which one or Notepad is the Mac equivalent of Word
Kitty [74]
WordPad is defenitely more advanced.
There is no Mac equivalent.
4 0
4 years ago
Other questions:
  • What is the value of the variable result after these lines of code are executed?
    5·2 answers
  • All spreadsheet formula should start with
    12·1 answer
  • A collection of related files that serves as a foundation for retrieving information is a: byte
    12·1 answer
  • How does a pond form?
    7·1 answer
  • Within a single program, __________________ allows multiple parts, or threads, to run simultaneously.
    15·1 answer
  • What is the purpose of citations?
    13·1 answer
  • One tool of Lean that is a container, card, or visual limit that signals when work needs to be done or replenishment needs to be
    13·1 answer
  • It is better to know the main components of all computer programming languages than to memorize the rules for all of the languag
    14·2 answers
  • Which type of backup ensures you capture a complete snapshot of everything that makes your computer run?.
    10·1 answer
  • Soa contains a lot of benefits, but _________ is not considered one of them.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!