X="hello world"
Print(x[:2],x[:-2],x[-2:])
Answers
Answered by
6
Answer:
The answer should be ⇒ he hello wor ld
Explanation:
First of all python is case sensitive language so the correct syntax for printing function is print("statements") and also initially you have declared the string with capital "X" then you have used lowercase "x" to access this will result in name error.
So Overall
The output will be ⇒ he hello wor ld
I hope this Helps :)
Similar questions