Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def lue_viesti():
- rivit = []
- jatko = True
- while jatko:
- rivi = input()
- rivit.append(rivi)
- if rivi == "":
- jatko = False
- print(rivit)
- for rivi in rivit:
- print(rivi)
- def main():
- print("Syota viestin tekstiriveja. Lopeta syottamalla tyhja rivi.")
- viesti = lue_viesti()
- print("Sama huutaen:")
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement