Computer Science, asked by Anamikaas04, 5 months ago

Write a python program to input a string and print it in the reverse order without creating a new string.

[[ strings in python]]

❌DO NOT SPAM❌​

Answers

Answered by pawansaklani4747
1

Answer:

string = raw_input (“Enter a string :”) length = len (string) max length = 0 max sub = ‘ ‘ sub = ‘ ‘ lensub = 0 for a in range (length) : if string [a] in aeiou ‘or string [a] in’AEIOU’: if lensub > maxlength : maxsub = sub maxlength – lensub sub = ‘ ‘ lensub 0 else : sub += string[a] lensub = len(sub) a + = 1 print “Maximum length consonent substring is :”, maxsub, print “with”, maxlength, “charactersRead more on

Answered by Renumahala2601
3

Answer:

Write a python program to input a string and print it in the reverse order without creating a new string.

[[ strings in python]]

❌DO NOT SPAM❌

Similar questions