<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.zenerves.net/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>https://wiki.zenerves.net/index.php?action=history&amp;feed=atom&amp;title=Syntax_Highlighting</id>
		<title>Syntax Highlighting - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.zenerves.net/index.php?action=history&amp;feed=atom&amp;title=Syntax_Highlighting"/>
		<link rel="alternate" type="text/html" href="https://wiki.zenerves.net/index.php?title=Syntax_Highlighting&amp;action=history"/>
		<updated>2026-08-26T06:49:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>https://wiki.zenerves.net/index.php?title=Syntax_Highlighting&amp;diff=355&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;&lt;syntaxhighlight lang=&quot;Python&quot;&gt;   #!/usr/bin/env python  #  # An hour/minutes calculator, taking input from the prompt.  # Define the Input Variable:    minutes_from_input = inpu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.zenerves.net/index.php?title=Syntax_Highlighting&amp;diff=355&amp;oldid=prev"/>
				<updated>2013-05-01T16:47:39Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;Python&amp;quot;&amp;gt;   #!/usr/bin/env python  #  # An hour/minutes calculator, taking input from the prompt.  # Define the Input Variable:    minutes_from_input = inpu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;Python&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 #!/usr/bin/env python&lt;br /&gt;
 #&lt;br /&gt;
 # An hour/minutes calculator, taking input from the prompt.&lt;br /&gt;
 # Define the Input Variable:&lt;br /&gt;
 &lt;br /&gt;
 minutes_from_input = input(&amp;quot;Enter how many minutes: &amp;quot;)   &lt;br /&gt;
 &lt;br /&gt;
 # At this stage, the input is just a string, can't do anything with it!&lt;br /&gt;
 # One MUST convert it to an integer to perform maths on:&lt;br /&gt;
 minutes = int(minutes_from_input) &lt;br /&gt;
 &lt;br /&gt;
 # Following not necessary, actually snobbish:&lt;br /&gt;
 factorhourday = 24&lt;br /&gt;
 factorhourminute = 60&lt;br /&gt;
 factordh= int(factorhourday)&lt;br /&gt;
 factorhm = int(factorhourminute)&lt;br /&gt;
 &lt;br /&gt;
 # Variables declarations and some basic maths:&lt;br /&gt;
 hour = minutes // factorhm&lt;br /&gt;
 day = hour // factordh &lt;br /&gt;
 &lt;br /&gt;
 #Let's solve the problem!&lt;br /&gt;
  # The math Way:&lt;br /&gt;
 remain_in_math = (minutes-(hour*factorhm))&lt;br /&gt;
  #The Py Way:&lt;br /&gt;
 remain_with_Py = minutes % factorhm &lt;br /&gt;
 &lt;br /&gt;
 # And get the answer out there.&lt;br /&gt;
 print()&lt;br /&gt;
 print((&amp;quot; How much&amp;quot;),(minutes),(&amp;quot;minutes make in days, hours, minutes?&amp;quot;))&lt;br /&gt;
 print((&amp;quot;    &amp;quot;),(day),(&amp;quot;d&amp;quot;),(hour),(&amp;quot;h&amp;quot;),(remain_in_math),(&amp;quot;m&amp;quot;),(&amp;quot;with maths.&amp;quot;))&lt;br /&gt;
 print((&amp;quot;    &amp;quot;),(day),(&amp;quot;d&amp;quot;),(hour),(&amp;quot;h&amp;quot;),(remain_with_Py),(&amp;quot;m&amp;quot;),(&amp;quot;with py.&amp;quot;))&lt;br /&gt;
 print()&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>