Censor


#1

text=input('')
word=input('')
j=[]
for i in text:
print (i)
j+=i
j=''.join(j)
print (j)
if (i == ' '):
print (j)
print(word)
if (str(word)==str(j)):
print ('hi')
print(''len(word))
print (word)

Without defining I am checking my code....there are a coup-le of problems:
1. ' ' won't take the last word into consideration until I put ' ' in the last while entering the text
2.I checked using print statements and in the second last if loop it enters and prints (j) and (word) but doesn't compare the word==j for the next loop.


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.