+ 2
Python Question
Input = Qwerty/you/ui or any thing If I want to get 'ui' from input, how can I get it ?
4 Answers
+ 2
Thanks Avalon
+ 1
No you are going wrong Web-Learner because I don't know that what will be length of "ui" it's only example
+ 1
print(input.split("/")[-1:])
+ 1
# Input Format Qwerty (Space) You (Space) UI
txt=input()
text=txt.split(' ')
Qwerty=text[0]
you=text[1]
ui=text[2]