<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>python Short hand if else notation | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/python-short-hand-if-else-notation/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Wed, 28 Sep 2022 16:42:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>Short hand if else notation</title>
		<link>https://studentprojects.in/software-development/short-hand-if-else-notation/</link>
					<comments>https://studentprojects.in/software-development/short-hand-if-else-notation/#respond</comments>
		
		<dc:creator><![CDATA[Shubhajna Rai]]></dc:creator>
		<pubDate>Wed, 28 Sep 2022 16:42:29 +0000</pubDate>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Short hand if else notation]]></category>
		<category><![CDATA[python Short hand if else notation]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9594</guid>

					<description><![CDATA[<p>Shorthand is defined as &#8220;a rudimentary technique of writing using abbreviations or symbols&#8221; in simple English. For instance, we shorten the word Kentucky Fried Chicken to KFC rather than using the complete name. Shorthand is a term used to describe writing that is so condensed. Let&#8217;s now discuss what shorthand means in the context of</p>
<p>The post <a href="https://studentprojects.in/software-development/short-hand-if-else-notation/">Short hand if else notation</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Shorthand is defined as &#8220;a rudimentary technique of writing using abbreviations or symbols&#8221; in simple English. For instance, we shorten the word Kentucky Fried Chicken to KFC rather than using the complete name. Shorthand is a term used to describe writing that is so condensed. Let&#8217;s now discuss what shorthand means in the context of the Python language.</p>



<p>Shorthand statements are executable statements that are expressed so succinctly that they only contain one line of code.</p>



<p>Python provides a wide variety of shorthand statements that enable us to write our code in a more condensed manner while taking up less space.</p>



<p>If we write the statement:</p>



<p>If-expression if(Condition) else else-expression</p>



<p>It will be same as:</p>



<p>if condition:</p>



<p>&nbsp;&nbsp; if-expression</p>



<p>else:</p>



<p>&nbsp;&nbsp; else-expression</p>



<p>First of all, employing the shorthand form requires less typing. It is incredibly stressful to write something in four or five lines that might be put in one if you are creating a project that requires thousands of lines of code.</p>



<p>The second benefit of brief programming is that it is handled effectively by the compiler. When working on a large project, such as Amazon (12 Million lines of code), Facebook (62 Million lines of code), or Google (2 Billion lines of code), it is crucial to save as many lines of code as we can by writing it in a compact form. However, it does not matter for short program, even if they are a few thousand lines long.</p>



<p>The fact that shorthand is difficult to read is another drawback. When working on a project in a group, we always attempt to pick the technique that is the simplest to grasp, and producing a compact code often causes problems when we share our code with someone. Regardless of the strategy we choose, we should always be aware of all other options because different strategies are employed by different people.</p><p>The post <a href="https://studentprojects.in/software-development/short-hand-if-else-notation/">Short hand if else notation</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/short-hand-if-else-notation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
