write a program that keep taking input(character) until the user enter a dot'.'.in python loop
def main():
input = ''
while True:
char = sys.stdin.read(1)
if (char == '.') break else input += char;
print(input) std:
if __name__ == '__main__':
main()
Comments
Leave a comment