Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, August 29, 2019

DataCamp Combining data types Sample Solution


# Update data types

year_1_str = str(year_1)

revenue_1_str = str(revenue_1)



# Create a complete sentence combining only the string data types

sentence = 'The revenue of ' + company_1 + ' in ' + year_1_str + ' was $' + revenue_1_str + ' billion.'



# Print sentence

print(sentence)

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts