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
castortr0y [4]
3 years ago
6

Create a conditional expression that evaluates to string "negative" if user_val is less than 0, and "non-negative" otherwise.

Computers and Technology
1 answer:
taurus [48]3 years ago
4 0

Answer:

The modified program is as follows:

user_val = int(input())

cond_str = 'non-negative'  

if user_val < 0:

   cond_str = 'negative'  

print(user_val, 'is', cond_str)

Explanation:

This gets input for user_val

user_val = int(input())

This initializes cond_str to 'non-negative'

cond_str = 'non-negative'

If user_val is less than 0

if user_val < 0:

cond_str is updated to 'negative'

   cond_str = 'negative'  

This prints the required output

print(user_val, 'is', cond_str)

You might be interested in
25 POINTS!!!!!!!!!!!!!
siniylev [52]

Answer:

im pretty sure its digital footprint

Explanation:

3 0
3 years ago
Which command is used to combine two or more cells together into one cell?
Tju [1.3M]
B is your answer I believe
5 0
3 years ago
Read 2 more answers
Question # 2
nikitadnepr [17]

Answer:

1. An advertising executive looks at a print layout and says, “I don’t like it. It’s too odd-looking.”

2. No, because he lacks the finesse needed to deal with both creatives and marketing personnel.

3. Brainstorming ideas for a social media campaign

Explanation:

1. An Art Director is mostly involved in the development of images and visual content that would appeal to a specific audience. So, when the advertising executive looks at a print layout and wants some adjustments done to it, the art director would be needed because this work involves visuals.

2. If an applicant for the position of an art director is excellent at his job, but does not communicate well with non-artists, he should not be hired for the job because his work mainly revolves around artists such as the creative directors and brand strategists as well as the marketing team members and he needs to effectively communicate with them especially in an advertising agency.

3. The brand strategist basically brainstorms ideas meant to sell a product and this might require discussing with the art director on the best ways to implement this.

8 0
3 years ago
What are wizard ranks in brainly​
Hunter-Best [27]

Answer:

Brainly gives special ranks to users who give outstanding performance in a specific subject. These ranks are known as Wizard rank. Specifically for only one person in each subjects: Maths, Chemistry, Physics, Biology, and English.

Explanation:

4 0
3 years ago
Read 2 more answers
What does spyware do on your computer?
faust18 [17]
Spyware is a type of malware that is installed on a computer without the knowledge of the owner in order to collect the owners private information. Spyware is often hidden from the user in order to gather information about internet interaction, keystrokes (also known as keylogging), passwords, and other valuable data. if this helps any....
6 0
3 years ago
Other questions:
  • Annalisa needs to total the amounts she spent at Starbucks in the last month. She has entered all the amounts from her receipts
    7·1 answer
  • How to divert all calls &amp; sms from other phone to my phone? is it possible?
    14·1 answer
  • What can you say about the following Java class definition?
    10·1 answer
  • A _____ is an area hosted by a Web server in which project members and colleagues can share documents, models, photos, and other
    6·1 answer
  • Who was the founder of the location-sharing site Whrrl
    6·1 answer
  • What are procedures that help keep a data base current
    7·2 answers
  • Identify a characteristic of electronic meeting systems.
    10·1 answer
  • Which of the following types of networks encrypts data for transmitting over
    15·1 answer
  • Debate whether social networking is harmful or helpful to society.
    5·1 answer
  • Which protocol makes a connection, checks whether the data is received, and resends it if it is not?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!