Re: [Tutor] Best way to write this countdown code

2019-01-12 Thread Alan Gauld via Tutor
On 12/01/2019 15:44, Joseph Gulizia wrote: > I want to integrate the following working code into a website: First thing to note is that web sites speak HTML, so anything you output for display needs to be in HTML not plain text. (Plain text will usually be understood by a browser but will look ter

Re: [Tutor] Best way to write this countdown code

2019-01-12 Thread Steven D'Aprano
On Sat, Jan 12, 2019 at 09:44:21AM -0600, Joseph Gulizia wrote: > Thanks in advance as I've gotten wordy. > > I want to integrate the following working code into a website: [...] Start with a simpler question: how would you integrate *any* Python code into a website? Few (i.e. no) browsers dire

[Tutor] Best way to write this countdown code

2019-01-12 Thread Joseph Gulizia
Thanks in advance as I've gotten wordy. I want to integrate the following working code into a website: beef_quantity = 28 ## Set before campaign starts. print('Original Beef Quantity: ') ## Displays the wording "Original Beef Quantity: " print (beef_quantity) ## Displays the beef quantity bef