www.2527.com_澳门新葡8455手机版_新京葡娱乐场网址_
做最好的网站

Demonstrates creating new strings with a for loop

2019-06-15 13:09 来源:未知
message = raw_input('Enter a message: ')
new_message = ''
VOWELS = 'aeiou'

print
for letter in message:
    if letter.lower() not in VOWELS:
        new_message  = letter
        print 'A new string has been created:', new_message

print 'nYour message without vowels is:', new_message
TAG标签:
版权声明:本文由澳门新葡8455手机版发布于计算机编程,转载请注明出处:Demonstrates creating new strings with a for loop