Question
To Remove Brackets from given Expression.
Sample TestCaseExpected Output
Enter an Expression : (x+y+z) x+y+z
Answer
s=input("Enter an expression : ")
brackets=('()')
for x in s:
if x in brackets:
s=s.replace(x," ")
print(s)
All the news and updates relevant to Engineering. You can also Write a post here
Hello My Name is DP Learn Engineering with Subscribe us to get Notified about New Post
Learn More →
No comments:
Post a Comment