Using Variables to Print a Formatted Message in Python

Create two variables (you can freely choose the names) and assign to them following values:

Using these variables and the print() function, print to the console the following text:

I am learning Python version 3.8

Output: I am learning Python version 3.8

Solutions

Solution: 1

lang = "Python"
version = "3.8"
 
print("I am learning {} version {}".format(lang,version))