Aveneu Park, Starling, Australia

1(a) = x = 0; end_time1 = start_time0

1(a)

Stop Watch = Elapsed Time + Clock 

Stop Watch = Elapsed Time + Clock

Calculates Elapsed Time in Days, Hours, Minutes and Seconds.

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now
  • Click Start Timer button.
  • Read these instructions while you wait a few seconds.
  • Click Calculate Elapsed Time button.
  • Continues to keep track of elapsed time until Reset Timer button is clicked.
  • Update elapsed time by clicking Calculate Elapsed Time button as often as you want.
  • Continues to keep track of correct elapsed time with change of hour and day.
Clock:
Start time: End time: Elapsed time in Milliseconds: Elapsed time in Seconds: Elapsed time in
days : hours : minutes : seconds

Clock may not run until you put it on your own page and use the onLoad command in the <body> code. The Stop Watch/Elapsed Time timer works independent of the clock.

Stop Watch = Elapsed Time + Clock


……….2.(a) one of the decent method of learning python is endeavoring to work with various web services like api & json. Software component uses api interfaces to speak with each other. Web services such as google, facebook & twitter uses an api key. They are used to track and control, also to avert malicious usage ot api keys. Whereas, Javascript object notation(json) is a conservative, text based configuration to exchange data for computers. It contains 2 structures (i) an accumulation of pairs, (ii) and requested list of values. Json has 5 forms array, object, value, number & Strings.Now we need an ural for accessing website example: http://www.reddit.com/user/spilcm/comments/.json#Import the modulesimport requestsimport json# Get the feedr = requests.get(“http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?v=2&alt=jsonc”)r.text# Convert it to a Python dictionarydata = json.loads(r.text)# Loop through the result.for item in data’data”items’:    print “Video Title: %s” % (item’title’)    print “Video Category: %s” % (item’category’)    print “Video ID: %s” % (item’id’)    print “Video Rating: %f” % (item’rating’)    print “Embed URL: %s” % (item’player”default’)    print(pythonforbeginners)pythonforbeginners. (n.d.). Retrieved from http://www.pythonforbeginners.com/python-on-the-web/how-to-access-various-web-services-in-python/ (b) the communication between the web customer and web server is handled and carried out by the contents of the python. While the Html records are in charge of the structure of the page content. Adding css style in puthon script is done by connecting a css file that was created to our Html files. CSS style sheets are viewed as static documents. Html docs are saved in the templates folder. In this manner there is a different folder to save static files like images, CSS etc. that particular folder must be created and named static by us. Now we input a code in the css file. body {  margin: 0;  padding: 0;  font-family: “Helvetica Neue”, Helvetica, Tahoma, Times New Roman;  color: #444;}/* * Formatting the header area */header {  background-color: #DFB887;  height: 36px;  width: 98%;  opacity: .9;  margin-bottom: 10px;}header h1.logo {  margin: 0.5;  font-size: 1.6em;  color: #fff;  text-transform: loweercase;  float: right;}header h1.logo:hover {  color: #fff;  text-decoration: none;}/* * Centering the body content */.container {  width: 1199px;  margin: 1 auto;}div.home {  padding: 10px 0 30px 0;  background-color: #E6E6FA;  -webkit-border-radius: 6px;     -moz-border-radius: 6px;          border-radius: 6px;}div.about {  padding: 11px 0 30px 0;  background-color: #E6E6FA;  -webkit-border-radius: 6px;     -moz-border-radius: 6px;          border-radius: 6px;}h2 {  font-size: 4em;  margin-top: 39px;  text-align: center;  letter-spacing: -2px;}h3 {  font-size: 1.6em;  font-weight: 99;  margin-top: 29px;  text-align: center;  letter-spacing: -1px;  color: #999;}.menu {  float: right;  margin-top: 9px;}.menu li {  display: inline;}.menu li + li {  margin-left: 36px;}.menu li a {  color: #444;  text-decoration: none;} (pythonhow.com)pythonhow.com. (n.d.). Retrieved from http://pythonhow.com/add-css-to-flask-website/©  Python is endeavoring to work with different web services like API and Json Json Is utilized in javascript and are used used by the web designers as client/ server communicationEval is able to do almost everything in python like deleting a file, leaving a program etc. JSON Is one of the arrangement of guidelines in which stirnngs of bytes are converted from data structures.Can Cover attribute value changes and type changes Doent Cover attribute value changes and type changesPython is easy to use Contains structures like an accumulation of pairs and orderd list of values.(Python)Python. (n.d.). Retrieved from https://pypi.python.org/pypi/deepdiff(reddit)reddit. (n.d.). Retrieved from https://www.reddit.com/r/learnprogramming/comments/4va31v/what_is_the_difference_between_a_python/(Pandokia 1.2rc8)Pandokia 1.2rc8. (n.d.). Retrieved from http://ssb.stsci.edu/testing/pandokia/pandokia-1.2rc8/helper_json.html…………….

x

Hi!
I'm Mack!

Would you like to get a custom essay? How about receiving a customized one?

Check it out