Python-Thunder icon indicating copy to clipboard operation
Python-Thunder copied to clipboard

Loops and strings

Open VinayakBector2002 opened this issue 4 years ago • 3 comments

"""WAP to perform the following tasks: i. Take a word as input from the user ii. Use a for loop to display each letter in the word iii. Print each letter in reverse order iv. Make a new string that is the reverse of original string and print the variable v. Count the number of characters in the word without using any inbuilt functions. """ #a = str(input('Enter a string : '))

print('Each letter of : ') for i in a: print(i) print('Reverse order;') aRev = a[::-1] for j in aRev: print(j) print('The New string in rev order :',aRev) length=0 for i in a: if i.isspace(): length+=1 print('No. of words :', length+1)

VinayakBector2002 avatar Oct 02 '20 18:10 VinayakBector2002

can i do this?

nootz1999 avatar Oct 03 '20 05:10 nootz1999

can I get to work on this problem

DevLokCodes avatar Oct 03 '20 10:10 DevLokCodes

Hey can i take up this issue. Thank you

hsrambo07 avatar Oct 03 '20 10:10 hsrambo07

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 28 '22 03:09 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Oct 13 '22 03:10 github-actions[bot]