Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #37.0K
2 Posted Topics
[CODE]s = raw_input("Enter a string: ") a = 0 i = 0 for i in range(len(s)): if s[i] == ' ': a = a + 1 print str(a) + '. ' + 'There was a space in position ' + str(i) + '.' [/CODE] i keep on trying to sub … | |
Hi, I have just recently started using python and I couldn't figure out two problems regarding finding the first three occurrences of spaces using while loops. I have trouble understanding the concept of while loops. How would i write a program that reports the first three occurrences of a space, … |
The End.