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
stellarik [79]
3 years ago
7

To quit, a user types 'q'. To continue, a user types any other key. Which expression evaluates to true if a user should continue

Computers and Technology
1 answer:
devlian [24]3 years ago
3 0

Answer:

!(key == 'q')

Explanation:

Based on the description, the coded expression that would equate to this would be

!(key == 'q')

This piece of code basically states that "if key pressed is not equal to q", this is because the ! symbol represents "not" in programming. Meaning that whatever value the comparison outputs, it is swapped for the opposite. In this case, the user would press anything other than 'q' to continue, this would make the expression output False, but the ! operator makes it output True instead.

You might be interested in
"A file named numbers.txt contains an unknown number of lines, each consisting of a single integer. Write some code that compute
satela [25.4K]

Answer:

Following are the program in the Python Programming Language.

#declare variable and initialize to 0

sum = 0

#read the following file

file = open('numbers.txt', 'r')

#set the for loop

for n in file:

  #convert the file string into the integer and perform sum.

  sum += int(n)

Explanation:

<u>The following are the description of the program</u>.

  • Firstly, declare variable 'sum' and initialize the integer type value i.e., 0.
  • Set the variable 'file' that only read the following file text i.e., 'numbers.txt'.
  • Set the for loop that read the content of the file and store in the variable 'n' one by one.
  • Finally, er convert the following string in to the integer and perform the addition.
7 0
3 years ago
When Python is running in the interactive mode and displaying the chevron prompt (&gt;&gt;&gt;) - what question is Python asking
Montano1993 [528]

Answer:

Python is asking: What Python statement would you like me to run?                          

Explanation:

When you start python, it displays a start up message along with >>>  sign which is called chevron. The chevron is a prompt which indicates that the interpreter is waiting for you to type a statement or an expression.

The chevron prompt is used by the interpreter which means that the interpreter is ready. Then you can type an expression or statement and it gives response accordingly by evaluating that expression.

6 0
3 years ago
Brainliest to Best Answer!
Shtirlitz [24]
ArrayIndexOutOfBoundsException
because it includes the extra info that you tried (and failed) to access an array
8 0
3 years ago
Which part of project management involves determining the required materials?
oksian1 [2.3K]

Answer:

Resources I think because what you have all depends on resources which required money

PLZ CORRECT ME IF I AM Wrong please and thank you

Explanation:

8 0
3 years ago
Read 2 more answers
What is the purpose of a web server? What is the purpose of a web browser?
Sauron [17]

Answer: the purpose of a web browser is to help answer and needed questions, and to get to sites.

Explanation:

4 0
2 years ago
Other questions:
  • You are able to change the formatting of a table after it is inserted into a placeholder. True or false
    9·2 answers
  • I only want someones opinion on this not anything you would find in a book.
    7·1 answer
  • Assume that the myname.txt file is currently closed. write the code segment that opens the file without erasing it, write anothe
    13·1 answer
  • When you type into a basic search engine like Google, Bing, or Yahoo!, the sites that appear at the top or on the side of the re
    7·1 answer
  • 1. Please write the following code in Python 3.2. Please also show all outputs.Create a dictionary named letter_counts that cont
    14·1 answer
  • What is essence of computer systems and networks?​
    9·1 answer
  • Which command group on the Slide Master tab is used to add headers, footers, and other placeholders to the slide
    13·2 answers
  • What is the most used gaming keyboard in 2022?
    8·1 answer
  • Which three options below describe typographic hierarchy?
    12·1 answer
  • TensorFlow and Pytorch are examples of which type of machine learning platform?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!