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
sesenic [268]
3 years ago
10

Write code to assign the number of characters in the string rv to a variable num_chars.

Computers and Technology
1 answer:
kramer3 years ago
6 0

Answer:

rv = "hello"

num_chars = len(rv)

print(num_chars)

Explanation:

*The code is in Python.

Initialize the string rv, in this example I set it to "hello"

Use the len() method to get the number of characters in the rv and set it to the num_chars

Print the num_chars

Note that the result will be 5 in this case, because <em>hello</em> consists of five characters

You might be interested in
2.4 Code Practice: Question 2
trasher [3.6K]

Answer:

num = float(input("Enter a number: "))

x =int(num)

y =float(num - x)

print(y)

Explanation:

It works I just did it!

5 0
3 years ago
The manager of a department store decides to give different gifts based on different numbers of purchases that people make. Ther
dusya [7]

<u>The statement will help the manager keep track of the gift items to give away:</u>

The manager in charge of a department store, he or she decided to give the gift for certain product purchased by customer, He or she has to create a product code which is called buy and get as a one category and  attach the list the product.

Once customer has purchased item, software should able to deduct the stock properly.

So programming statement should have list of product as singe product to do the necessary sales.

Software also keep track on stock deduction and keep sales of gift item as free of cost product.

5 0
3 years ago
Aquatic animals have different levels of tolerance to pH scale changes in water. For example a wood frog will die if the pH of w
igomit [66]
We can assume that the acidity of the river has a pH value of at least 6 or greater. We know this because given that clams die if acidity is less than 6 and frogs die when acidity is less than 4, if they both survive, acidity must not be lower than 6 pH
4 0
3 years ago
8. Explain strategies employed by the operating system to ensure safety of programs and data in
Ugo [173]

Answer:

is the process of ensuring OS integrity, confidentiality and availability. ... OS security encompasses all preventive-control techniques, which safeguard any computer assets capable of being stolen, edited or deleted if OS security is compromised.

3 0
3 years ago
Sub to splashy
tatyana61 [14]
Ok well make that 19 now
7 0
3 years ago
Read 2 more answers
Other questions:
  • You will transform the program that was written to play a letter guessing game (project 2) to an object-oriented program.general
    12·1 answer
  • The questions are in the pictures, i basically have to create a web page, drop the html code and files below thank you.
    7·1 answer
  • Using the College Registration example from Section 6.7.3 as a starting point, do the following:
    5·1 answer
  • A Venn diagram is used to show...?<br> Plz help
    10·2 answers
  • Im bored, any anime recommendations? i probably watched whatever youre gonna say
    14·2 answers
  • When your purchases are swiped over the bar-code reader at the point-of-sale terminals at Wal-Mart, a _____ records the data.
    8·1 answer
  • Myra just got the latest computer game and wants to play it on her desktop. When she plays the game, she notices that it is slug
    5·2 answers
  • Pls help
    15·2 answers
  • Write c++ program to find maximum number for three variables using statement ?​
    13·1 answer
  • Pls awnser if awnser is wrong I will unmark brainliest
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!