+ 1

Can anyone write a function separating

Can anyone write a function separating each genre by itself in string Example: "hjd 652hf7 * 4,5-4 (uy 5+4" The result is hjd # 652 # hf # 7 # * # 4,5 # -4 #(#uy#5#+#4

8th Feb 2021, 2:36 PM
mar ia
mar ia - avatar
8 Respostas
+ 3
Why is last one +#4 instead of #+4 like #-4 .
8th Feb 2021, 2:41 PM
Abhay
Abhay - avatar
+ 3
The problem is not well defined
9th Feb 2021, 7:08 AM
جوردن آهو ماولی
جوردن آهو ماولی - avatar
+ 1
Abhay the last one is opiration and -4 is Signal number
8th Feb 2021, 4:27 PM
mar ia
mar ia - avatar
+ 1
mar ia see the following question , it gave me a better idea of what is going on , https://www.sololearn.com/Discuss/2690623/?ref=app like in "4, 5-4" it should have been written as "#4, 5 #- #4" but i think you forgot the add("+") sign , right?
8th Feb 2021, 5:34 PM
Abhay
Abhay - avatar
+ 1
It separates and places each class between # The numbers are without an indication And the numbers have a sign And operations And parentheses If there is anything different from this, you put it between # alone as well
8th Feb 2021, 5:41 PM
mar ia
mar ia - avatar
+ 1
Abhay Yes, she is my girlfriend and we work together We raised the same problem
8th Feb 2021, 5:44 PM
mar ia
mar ia - avatar
+ 1
I know python fairly well, but I learned it with a different course, and do not recognize this terminology. What is the problem you’re trying to solve?
9th Feb 2021, 2:51 PM
Wilbur Jaywright
Wilbur Jaywright - avatar
0
specifically, how do you mean by “genere”?
9th Feb 2021, 2:51 PM
Wilbur Jaywright
Wilbur Jaywright - avatar