- How do you print the string “Hello, world!” to the screen?
- How do you print the value of a variable
namewhich is set to “Syed Jafer” or Your name? - How do you print the variables
name,age, andcitywith labels “Name:”, “Age:”, and “City:”? - How do you use an f-string to print
name,age, andcityin the format “Name: …, Age: …, City: …”? - How do you concatenate and print the strings
greeting(“Hello”) andtarget(“world”) with a space between them? - How do you print three lines of text with the strings “Line1”, “Line2”, and “Line3” on separate lines?
- How do you print the string
He said, "Hello, world!"including the double quotes? - How do you print the string
C:\Users\Namewithout escaping the backslashes? - How do you print the result of the expression
5 + 3? - How do you print the strings “Hello” and “world” separated by a hyphen
-? - How do you print the string “Hello” followed by a space, and then print “world!” on the same line?
- How do you print the value of a boolean variable
is_activewhich is set toTrue? - How do you print the string “Hello ” three times in a row?
- How do you print the sentence
The temperature is 22.5 degrees Celsius.using the variabletemperature? - How do you print
name,age, andcityusing the.format()method in the format “Name: …, Age: …, City: …”? - How do you print the value of pi (3.14159) rounded to two decimal places in the format
The value of pi is approximately 3.14? - How do you print the words “left” and “right” with “left” left-aligned and “right” right-aligned within a width of 10 characters each?