Question: In python I need help to fix this code in a simple and easy way to follow the code so the program that outputs all

In python

I need help to fix this code in a simple and easy way to follow the code

so the program that outputs all sub strings of an input

EX. BCBD - B, C, B, D, BC, CB, BD, BCB, CBD, BCBD

then remove duplicate

B, C, D, BC, CB, BD, BCB, CBD, BCBD

code

___________________________

Str ="BCBD def subString(Str,n): for Len in range(1,n + 1): for i in range(n - Len + 1): j = i + Len - 1 for k in range(i,j + 1): subString(Str,len(Str))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!