<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Learn Python Control Flow and Loops to Write and Tune Shell Scripts &#8211; Part 2	</title>
	<atom:link href="https://www.tecmint.com/learn-python-control-flow-and-loops/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/learn-python-control-flow-and-loops/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 02 Mar 2023 05:43:33 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: steve		</title>
		<link>https://www.tecmint.com/learn-python-control-flow-and-loops/comment-page-1/#comment-857545</link>

		<dc:creator><![CDATA[steve]]></dc:creator>
		<pubDate>Thu, 05 Jan 2017 00:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20813#comment-857545</guid>

					<description><![CDATA[Gabriel,

Don&#039;t get why this script isn&#039;t working, even after correcting for indentation and adding utf-8 it only runs under IDE&#039;s.

At the console I still get.....
&lt;pre&gt;
./uname.py: line 1: ﻿#!/usr/bin/python: No such file or directory
&lt;/pre&gt;
I only code in 2.7 hence the change or omission of line one. I Chmod it and that is the correct path to python2.7. 
Yet this is the only python file run at the console that complains like this..........?]]></description>
			<content:encoded><![CDATA[<p>Gabriel,</p>
<p>Don&#8217;t get why this script isn&#8217;t working, even after correcting for indentation and adding utf-8 it only runs under IDE&#8217;s.</p>
<p>At the console I still get&#8230;..</p>
<pre>
./uname.py: line 1: ﻿#!/usr/bin/python: No such file or directory
</pre>
<p>I only code in 2.7 hence the change or omission of line one. I Chmod it and that is the correct path to python2.7.<br />
Yet this is the only python file run at the console that complains like this&#8230;&#8230;&#8230;.?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gabriel A. Cánepa		</title>
		<link>https://www.tecmint.com/learn-python-control-flow-and-loops/comment-page-1/#comment-804528</link>

		<dc:creator><![CDATA[Gabriel A. Cánepa]]></dc:creator>
		<pubDate>Thu, 04 Aug 2016 13:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20813#comment-804528</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/learn-python-control-flow-and-loops/comment-page-1/#comment-804422&quot;&gt;Paul Campbell&lt;/a&gt;.

@Paul,
Thanks for bringing this to our attention. I must confess I never thought I had to state explicitly this would work on Linux only, but we will add that notice as per your suggestion.
@Ravi,
Please add a small note to clarify. As for the indentation, perhaps we will need a different WP plugin. Any ideas?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/learn-python-control-flow-and-loops/comment-page-1/#comment-804422">Paul Campbell</a>.</p>
<p>@Paul,<br />
Thanks for bringing this to our attention. I must confess I never thought I had to state explicitly this would work on Linux only, but we will add that notice as per your suggestion.<br />
@Ravi,<br />
Please add a small note to clarify. As for the indentation, perhaps we will need a different WP plugin. Any ideas?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Paul Campbell		</title>
		<link>https://www.tecmint.com/learn-python-control-flow-and-loops/comment-page-1/#comment-804422</link>

		<dc:creator><![CDATA[Paul Campbell]]></dc:creator>
		<pubDate>Thu, 04 Aug 2016 05:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20813#comment-804422</guid>

					<description><![CDATA[The web version does not include indentation  where required by python syntax. I added the indentation and got past those errors and then got 
the following:

SyntaxError: Non-ASCII character &#039;\xc3&#039; in file uname.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Also it will not run on windows because os.uname not available except on linux.

I got around these errors by using pythonanywhere.com on the web. It ran and was neat but I would think some one at tecmint could help with
the indentation problem and also specify it will not work on Windows.]]></description>
			<content:encoded><![CDATA[<p>The web version does not include indentation  where required by python syntax. I added the indentation and got past those errors and then got<br />
the following:</p>
<p>SyntaxError: Non-ASCII character &#8216;\xc3&#8217; in file uname.py on line 1, but no encoding declared; see <a target="_blank" href="http://python.org/dev/peps/pep-0263/" rel="nofollow ugc">http://python.org/dev/peps/pep-0263/</a> for details</p>
<p>Also it will not run on windows because os.uname not available except on linux.</p>
<p>I got around these errors by using pythonanywhere.com on the web. It ran and was neat but I would think some one at tecmint could help with<br />
the indentation problem and also specify it will not work on Windows.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gabriel A. Cánepa		</title>
		<link>https://www.tecmint.com/learn-python-control-flow-and-loops/comment-page-1/#comment-804230</link>

		<dc:creator><![CDATA[Gabriel A. Cánepa]]></dc:creator>
		<pubDate>Wed, 03 Aug 2016 11:57:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20813#comment-804230</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/learn-python-control-flow-and-loops/comment-page-1/#comment-804010&quot;&gt;big joe&lt;/a&gt;.

@big joe,
It&#039;s possible that the web formatting has damaged the indentation a little. But I can assure you that the program works, as you can see in the screenshots.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/learn-python-control-flow-and-loops/comment-page-1/#comment-804010">big joe</a>.</p>
<p>@big joe,<br />
It&#8217;s possible that the web formatting has damaged the indentation a little. But I can assure you that the program works, as you can see in the screenshots.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: big joe		</title>
		<link>https://www.tecmint.com/learn-python-control-flow-and-loops/comment-page-1/#comment-804010</link>

		<dc:creator><![CDATA[big joe]]></dc:creator>
		<pubDate>Tue, 02 Aug 2016 14:43:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20813#comment-804010</guid>

					<description><![CDATA[Program will not run as shown due to no indentation starting with &#039;if len(item) &#060; len(headers[index]):&#039;.]]></description>
			<content:encoded><![CDATA[<p>Program will not run as shown due to no indentation starting with &#8216;if len(item) &lt; len(headers[index]):&#039;.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
