How do you think we could print a sentence that uses a variable along with other text (ie: “My name is Joe” where ‘Joe’ is a var
iable called name.)
1 answer:
This is for Python
name = 'Joe'
print(f'My name is {name}')
This is called string formatting. Using f before the text. This is another way
name = 'Joe'
print('My name is', Joe)
But I found that string formatting is cleaner and much more useful
You might be interested in
Answer:
D
Explanation:
They all fit the definition of a computer
None that I know. Many third party apps.
the answer is the seconf one
One surface is larger than the other surface
C. ">" denotes the end of an element. For instance <b>Hello!</b> or <hr />