What do these 3 lines print?>>> s1 = "Best School">>> s2 = s1>>> print(s1 == s2)
Question
Solution 1
These three lines of code are written in Python. Here's what they do:
s1 = "Best School"
: This line creates a variable nameds1
and assigns the string "Best School" to it.s2 = s1
: This line creates another variable nameds2
and assigns it the value ofs1
, which is "Best School".Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study prob
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solv
Similar Questions
What do these 3 lines print?>>> s1 = "Best School">>> s2 = "Best School">>> print(s1 == s2)
What do these 3 lines print?>>> s1 = "Best School">>> s2 = s1>>> print(s1 == s2)
What do these lines print?if 12 == 48/4: print("Holberton")else: print("School")HolbertonSchool
What do these lines print?>>> for i in ["Hello", "Holberton", "School", 98]:>>> print(i, end=" ")0 1 2 31 2 3 4Hello Holberton School 98
What will be the output of the following Python code?s1={1, 2, 3}s2={4, 5, 6}s1.isdisjoint(s2)s2.isdisjoint(s1)