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 02:00
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
The program below has been generalized to read a user's input value for hourlywage. run the program. notice the user's input value of 10 is used. modify that input value, and run again. generalize the program to get user input values for workhoursperweek and workweeksperyear (change those variables' initializations to 0). run the program. monthsperyear will never change, so define that variable as final. use the standard for naming final variables. ex: final int max_length
Answers: 2
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
Biology, 11.12.2019 05:31
question
Mathematics, 11.12.2019 05:31
Questions on the website: 13722367