Question: New + main.py Exercise 2 . 3 . 8 | 2 4 vs . 2 4 Using the correct data type is important

New +
main.py
Exercise 2.3.8|24 vs."24"
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 integers in the second code segment to strings and run the code. What do you notice?
 New + main.py Exercise 2.3.8|24 vs."24" Using the correct data type

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!