# Copyright (c) 2020 Jonathan Anderson # Permission is granted to copy and modify this code for any purpose. # # This is an example of a simple Python script for questing. # First, gather some basic information from the user. name = input('What is your name? ') quest = input('What is your quest? ') v = input('What is the average airspeed of an unladen swallow? ') # Greet the brave dame or knight. print('Greetings, brave', name) # Convert speed into a floating-point number and calculate quest time. v = float(v) print('Your quest for', quest, 'will be aided when the swallow flies 792 m.') print('This should take', 792 / v, 's.')