Lösung LU01.A08

def main():
    # write your code below this line
    print('I will tell you a story, but I need some information first.')
    name = input('What is the main character called?\n')
    job = input('What is their job?\n')
    print('Here is the story:')
    print('Once upon a time there was ' + name + ', who was ' + job)
    print('On the way to work, ' + name + ' reflected on life.')
    print('Perhaps ' + name + ' will not be ' + job + ' forever.')
 
if __name__ == '__main__':
    main()
  • modul/archiv/m319python/learningunits/lu01/loesungen/story.txt
  • Zuletzt geändert: 2024/03/28 14:07
  • von 127.0.0.1