You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print 'kill game by input end' refdoc=['a','e','i','o','u']; while 1: numbera=0; numbere=0; numberi=0; numbero=0; numberu=0; s=input("input string:"); if s=='end': print 'end game'; break; for i in s: if i in refdoc: if i==refdoc[0]: numbera=numbera+1; elif i==refdoc[1]: numbere=numbere+1; elif i==refdoc[2]: numberi=numberi+1; elif i==refdoc[3]: numbero=numbero+1; else: numberu=numberu+1; print 'the vowel a numbers is '+str(numbera); print 'the vowel e numbers is '+str(numbere); print 'the vowel i numbers is '+str(numberi); print 'the vowel o numbers is '+str(numbero); print 'the vowel u numbers is '+str(numberu);
The text was updated successfully, but these errors were encountered:
print 'kill game by input end' refdoc=['a','e','i','o','u']; while 1: numbera=0; numbere=0; numberi=0; numbero=0; numberu=0; s=input("input string:"); if s=='end': print 'end game'; break; for i in s: if i in refdoc: if i==refdoc[0]: numbera=numbera+1; elif i==refdoc[1]: numbere=numbere+1; elif i==refdoc[2]: numberi=numberi+1; elif i==refdoc[3]: numbero=numbero+1; else: numberu=numberu+1; print 'the vowel a numbers is '+str(numbera); print 'the vowel e numbers is '+str(numbere); print 'the vowel i numbers is '+str(numberi); print 'the vowel o numbers is '+str(numbero); print 'the vowel u numbers is '+str(numberu);
The text was updated successfully, but these errors were encountered: