Computer Science, asked by anaghapriya, 10 months ago

Identify the value of i for which the skew array of "CATTCCAGTACTTCGATGATGGCGTGAAGA" attains a minin
value.
Report the position of the first occurrence only, with 1-based numeration (i.e. Skew[1] corresponds to "C" here)​

Answers

Answered by pavithranatarajan855
6

Answer:

skew = "CATTCCAGTACTTCGATGTGGCGTGAAGA"

char = input("Please enter your own Character : ")

char=char.upper()

flag = 0

for i in range(len(string)):

   if(string[i] == char):

       flag = 1

       break

if(flag == 0):

   print("Character is not available")

else:

   print("The first Occurrence of ", char, " is Found at Position " , i + 1)

Explanation:

Similar questions