Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
name = "Sam". Which line shows Hello, Sam! exactly? | StemPy Lab
Quizzes
/
name = "Sam". Which line shows Hello, Sam! exactly?
Python Programming
Medium
Middle Stage (6–8)
High School (9–10)
High School (11–12)
Undergraduate
General
Python Basics › Strings
Created by
StemPy Lab
name = "Sam". Which line shows Hello, Sam! exactly?
print("Hello, " + name)
print("Hello, {name}!")
print(f"Hello, {name}!")
print("Hello," + name + "!")
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← What is the value of "a,b,c".split(",")?
A student says that "Total: " + 5 shows Total: 5. What is the mistake? →
More on
Python Basics › Strings
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
For the text "the cat sat on the mat", write the program lines that show: how many times at occurs…
Medium
A student wants to change the name "Rahul" to "Raju" and writes…
Medium
The variable word = "elephant" has eight letters.
Easy
The name is "asha rao". Show its initials in capital letters: AR.
Hard
All problems on this topic →