CBSE BOARD XII, asked by Aurora34, 11 months ago

Give answer with proper EXPLANATION

Attachments:

Answers

Answered by johangeo71
0

Answer

# it will print new line after the messages

print("Hello")

print("World")

# it will print new line

print()

# it will print new line after printing "Hello"

print("Hello",end="\n")

# it willprint new line after printing "World"

print("World")

# it will print new line

print()

# it will not print new line after printing "Hello"

# it will print space " "

print("Hello",end=" ")

# it will print new line after printing "World"

print("World").

Explanation

print() prints new line after printing the message by default.

end parameter can be used to specify the end character after printing the message - here in this program, we are using end="\n" and end=" ", first one will print a newline after the message and the second one will print the space after printing the message

Hope it helps

Plz mark me as Brainliest

Answered by Anonymous
0

hi there,

Ans.

250 # 150

250 # 100

130 # 100

explanation;

since P is not given and later P value change with R so, use P=150

P=P+Q

P=150+30=180

Q=180-30=150

LATER PRINT

BUT NOW FOR P Q VALUE ALSO CHANGE WITH S WHOSE VALUE IS 100

SO FOR P

P=P+Q=150+100

print( P,"#",Q) =250#150

Similar questions