1 / 1

Here are several variables

The Big V ariable C hallenge. Here are several variables. name2=Mary. age=23. n ame=Simon. n ightclub= Oceana. transport2=car. age2=26. t ransport=bus. d ance=slow dance. drink2=Orange juice. dance2=throw shapes. drink=Diet C oke. drink3= Irn B ru. f ancies them=yes.

feoras
Download Presentation

Here are several variables

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Big Variable Challenge Here are several variables name2=Mary age=23 name=Simon nightclub=Oceana transport2=car age2=26 transport=bus dance=slow dance drink2=Orange juice dance2=throw shapes drink=Diet Coke drink3=IrnBru fancies them=yes another date=yes another date2=no fancies them2=no Write a program to print on screen a story using the above variables Here is an example of the output – all the variables used are in bold Simon aged 23 has met Mary aged 26 at Oceana night club. Mary asked Simon for a dance and he said yes but only to throw shapes. He does not want a slow dance. After the dance Simon asked Mary if she would like a drink and she said yes can I have an IrnBru. They chatted for a while and Mary asked Simon if he fancied her. He said yes. Simon then asked Mary if she would like another date and she said yes. Both of them went there separate ways. Simon went home by bus and Mary went home by car. When completed print out your program and output from Python.

More Related