1. Engineering
  2. Computer Science
  3. putting it all together create an integer variable depth...

Question: putting it all together create an integer variable depth...

Question details

Putting it all together

- Create an integer variable **depth** and set it to 6
- Create a string variable **planet** and set it to “Earth”
- convert the variable **depth** into a string
- Create a variable **ocean_depth** and set it to the string: “The average ocean depth on Earth is 6 km” by using the variables depth and planet instead of Earth and 6
- print out the variable **ocean_depth**

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution