59,680 views
24 votes
24 votes
Consider the following code:

x = "apple"
y = x
z = "banana"
print(x + " " + y + "\\" + 2)

User Palindrom
by
2.7k points

1 Answer

18 votes
18 votes

Answer:

apple apple

banana

Step-by-step explanation:

Given - Consider the following code:

x = "apple"

y = x

z = "banana"

To find - print(x + " " + y + "\\" + z)

It will print -

apple apple

banana

First will apple followed by '' '' that is space then y which is equal to x that is apple then followed by ''\\'' new line then banana.

So, The answer would be

apple apple

banana

Notation used -

'' '' represents space between two values

''\\'' represents new line

User Kinjal Dixit
by
3.0k points