subject

Exercise 3.6.9: 24 vs. "24"5 points Using the correct data type is important when math operators are involved.

Strings can also be “added” together. This is called concatenation.

A substring is part of an existing string. When strings are concatenated, each separate substring is combined to create a new string. Let’s check this out!

In this exercise, change the variables in the second code segment to strings and run the code. What do you notice?

# Code Segment One - Data Type - numbers
num_result = 24 + 24
print(num_result)

# Code Segment Two - Data Type - Strings
# Change both numbers to strings and run code
# Change only one number to a string and run code. What happens?
string_result = 24 + 24
print(string_result)
python

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:40
Consider the simple 3-station assembly line illustrated below, where the 2 machines at station 1 are parallel, i.e., the product only needs to go through one of the 2 machines before proceeding to station 2.what is the throughput time of this process?
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
Which feature of a blog to restore and retrieve older post
Answers: 3
You know the right answer?
Exercise 3.6.9: 24 vs. "24"5 points Using the correct data type is important when math operators ar...
Questions
question
Mathematics, 12.02.2020 00:27
question
Mathematics, 12.02.2020 00:27
Questions on the website: 13722362