<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Aiforkids - Recent activity in Programming</title>
<link>https://aiforkids.in/qa/activity/programming</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: Write a program that keep on accepting number from the user until user enters Zero. Display the sum and average of all the numbers.</title>
<link>https://aiforkids.in/qa/806/write-program-accepting-number-enters-display-average-numbers?show=3199#a3199</link>
<description>


&lt;div style=&#039;color: rgb(0, 0, 0); background-color: rgb(247, 247, 247); font-family: monospace, Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&#039;&gt;

&lt;div&gt;sum = &lt;span style=&quot;color:#116644&quot;&gt;0&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;count = &lt;span style=&quot;color:#116644&quot;&gt;-1&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;num = &lt;span style=&quot;color:#0000ff&quot;&gt;None&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;color:#af00db&quot;&gt;while&lt;/span&gt; num!=&lt;span style=&quot;color:#116644&quot;&gt;0&lt;/span&gt;:&lt;/div&gt;

&lt;div&gt;&amp;nbsp; num = &lt;span style=&quot;color:#257693&quot;&gt;int&lt;/span&gt;(&lt;span style=&quot;color:#795e26&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color:#a31515&quot;&gt;&quot;Enter 0 to terminate, any other integer to continue: &quot;&lt;/span&gt;))&lt;/div&gt;

&lt;div&gt;&amp;nbsp; sum = sum + num&lt;/div&gt;

&lt;div&gt;&amp;nbsp; count += &lt;span style=&quot;color:#116644&quot;&gt;1&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;color:#795e26&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color:#a31515&quot;&gt;&quot;the sum is&quot;&lt;/span&gt;, sum)&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;color:#795e26&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color:#a31515&quot;&gt;&quot;the average is&quot;&lt;/span&gt;, sum/count)&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/806/write-program-accepting-number-enters-display-average-numbers?show=3199#a3199</guid>
<pubDate>Mon, 01 Apr 2024 09:43:27 +0000</pubDate>
</item>
<item>
<title>Answer selected: The History of Computer Programming and Generations</title>
<link>https://aiforkids.in/qa/3143/the-history-of-computer-programming-and-generations?show=3144#a3144</link>
<description>


&lt;p&gt;Click the Image to Open Video Lecture on YouTube -&amp;nbsp;The History of Computer Programming&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://www.youtube.com/watch?v=te7thpKdvIc&quot;&gt;&lt;img alt=&quot;Evolution of Computer Programming&quot; src=&quot;https://aiforkids.in/qa/?qa=blob&amp;amp;qa_blobid=7841569073839530471&quot; style=&quot;height:337px; width:600px&quot;&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;History of computer programming&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Computer programming is the process of creating and executing instructions that tell a computer what to do. Computer programming can be used for various purposes, such as solving problems, creating applications, automating tasks, and expressing creativity.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;The history of computer programming can be traced back to ancient times, when people devised ways to control machines and devices using mechanical or electrical signals. For example, in the 9th century, the Persian Banu Musa brothers invented a programmable music sequencer that could play different melodies using valves and pipes. In the 13th century, the Arab engineer Al-Jazari designed a programmable drum machine that could play different rhythms using pegs and cams.&lt;/p&gt;

&lt;p&gt;However, the modern era of computer programming began in the 19th century, when mathematicians and engineers started to design machines that could perform complex calculations and logic operations. One of the pioneers of this field was Charles Babbage, who conceived the idea of a programmable mechanical computer called the Analytical Engine. Although he never completed his invention, he designed many features that are still used in modern computers, such as memory, arithmetic unit, control unit, and input/output devices.&lt;/p&gt;

&lt;p&gt;Babbage also collaborated with Ada Lovelace, who is widely regarded as the first computer programmer. Lovelace wrote an algorithm to compute Bernoulli numbers using the Analytical Engine, and also speculated about the potential of the machine to perform more than just numerical calculations. She envisioned that it could manipulate symbols, create music, and even have artificial intelligence.&lt;/p&gt;

&lt;p&gt;The development of computer programming accelerated in the 20th century, with the invention of electronic computers that could store and process data using binary digits (bits). The first electronic computers were programmed using low-level languages, such as machine code and assembly language, which directly corresponded to the hardware instructions and registers of the computer. These languages were fast and efficient, but also difficult and tedious to write and debug.&lt;/p&gt;

&lt;p&gt;To overcome these limitations, high-level languages were created that allowed programmers to express their logic using more abstract and human-readable syntax and semantics. These languages were translated into low-level languages using compilers or interpreters. Some of the earliest high-level languages were FORTRAN (Formula Translation), developed by John Backus at IBM in 1957 for scientific computing; LISP (List Processing), developed by John McCarthy at MIT in 1958 for artificial intelligence; and COBOL (Common Business-Oriented Language), developed by Grace Hopper and others in 1959 for business applications.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Since then, hundreds of high-level languages have been developed for various domains and paradigms of programming. Some of the most influential and popular ones include BASIC (Beginner&#039;s All-purpose Symbolic Instruction Code), developed by John Kemeny and Thomas Kurtz in 1964 for educational purposes; C, developed by Dennis Ritchie at Bell Labs in 1972 for system programming;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;SQL (Structured Query Language), developed by Edgar Codd in 1974 for database manipulation;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;C++, developed by Bjarne Stroustrup in 1983 as an extension of C with object-oriented features;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Java, developed by James Gosling at Sun Microsystems in 1995 for cross-platform and network programming;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Python, developed by Guido van Rossum in 1991 for general-purpose and scripting programming; and JavaScript, developed by Brendan Eich at Netscape in 1995 for web development.&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Computer programming has become one of the most important and ubiquitous skills in the modern world, as it enables people to create software that can perform various functions and tasks on computers and other devices.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Computer programming is also a creative and rewarding activity that can challenge and inspire people to learn new concepts and technologies. As computer programming evolves with the advancement of hardware and software, it will continue to offer new opportunities and possibilities for human-computer interaction.&lt;/p&gt;

</description>
<category>Other Programming</category>
<guid isPermaLink="true">https://aiforkids.in/qa/3143/the-history-of-computer-programming-and-generations?show=3144#a3144</guid>
<pubDate>Sun, 02 Apr 2023 14:39:08 +0000</pubDate>
</item>
<item>
<title>Answered: What are the key features of python ? Mention various applications along with it</title>
<link>https://aiforkids.in/qa/819/what-features-python-mention-various-applications-along-with?show=2515#a2515</link>
<description>


&lt;p&gt;Ans. Some key features of Python are:&lt;/p&gt;

&lt;ol&gt;

&lt;li&gt;Easy to code&lt;/li&gt;

&lt;li&gt;Easy to read&lt;/li&gt;

&lt;li&gt;Free and Open-Source&lt;/li&gt;

&lt;li&gt;Robust and Standard Library&lt;/li&gt;

&lt;li&gt;Portable&lt;/li&gt;&lt;/ol&gt;

&lt;p&gt;
&lt;br&gt;Some applications of Python are:&amp;nbsp;&lt;/p&gt;

&lt;ol&gt;

&lt;li&gt;Data analytics&lt;/li&gt;

&lt;li&gt;Data visualisation&lt;/li&gt;

&lt;li&gt;Programming applications&lt;/li&gt;

&lt;li&gt;Web development&lt;/li&gt;

&lt;li&gt;Game development&lt;/li&gt;&lt;/ol&gt;

&lt;p&gt;
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/819/what-features-python-mention-various-applications-along-with?show=2515#a2515</guid>
<pubDate>Sun, 26 Jun 2022 04:23:00 +0000</pubDate>
</item>
<item>
<title>Answer selected: Name the different types of operators in python language.</title>
<link>https://aiforkids.in/qa/1490/name-the-different-types-of-operators-in-python-language?show=1660#a1660</link>
<description>


&lt;p&gt;The different types of operators are:-&lt;/p&gt;

&lt;p&gt;1. Python Arithmetic Operators&lt;/p&gt;

&lt;p&gt;2. Python Comparison/Relational Operators&lt;/p&gt;

&lt;p&gt;3. Python Assignment Operators&lt;/p&gt;

&lt;p&gt;4. Python Logical Operators&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about&amp;nbsp;&lt;strong&gt;python&amp;nbsp;&lt;/strong&gt;at&amp;nbsp;&lt;strong&gt;&lt;u&gt;&lt;a rel=&quot;&quot; href=&quot;http://aiforkids.in/class-10/python/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/u&gt;&lt;/strong&gt;&amp;nbsp;.&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/1490/name-the-different-types-of-operators-in-python-language?show=1660#a1660</guid>
<pubDate>Sun, 12 Jun 2022 03:40:41 +0000</pubDate>
</item>
<item>
<title>Reshown: Name the different types of operators in python language.</title>
<link>https://aiforkids.in/qa/1492/name-the-different-types-of-operators-in-python-language?show=1492#q1492</link>
<description>


&lt;p&gt;Name the different types of operators in python language.&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:100%; border-spacing: 1px;&quot;&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td&gt;Topic&lt;/td&gt;

&lt;td&gt;Python (Programming)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Type&lt;/td&gt;

&lt;td&gt;Short Answer Type&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Class&lt;/td&gt;

&lt;td&gt;9&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;p&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/1492/name-the-different-types-of-operators-in-python-language?show=1492#q1492</guid>
<pubDate>Sun, 12 Jun 2022 03:23:08 +0000</pubDate>
</item>
<item>
<title>Answered: What are the rules for naming of variables and constants</title>
<link>https://aiforkids.in/qa/823/what-are-the-rules-for-naming-of-variables-and-constants?show=1759#a1759</link>
<description>


&lt;ol&gt;

&lt;li&gt;Create a name that makes sense. Suppose, vowel makes more sense than v.&lt;/li&gt;

&lt;li&gt;Use camelCase notation to declare a variable. It starts with lowercase letter. For example: myName&lt;/li&gt;

&lt;li&gt;Use capital letters where possible to declare a constant. For example: PUse capital letters where possible to declare a constant. For example: PI&lt;/li&gt;

&lt;li&gt;Never use special symbols like !, @, #, $, %, etc.&lt;/li&gt;

&lt;li&gt;Constant and variable names should have combination of letters in lowercase or uppercase or digits or an underscore (_)

&lt;hr&gt;

&lt;p&gt;Study more about Variables in&amp;nbsp;Python at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/basics-of-python/#variables-in-python&quot;&gt;Variables in Python Class 10&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/823/what-are-the-rules-for-naming-of-variables-and-constants?show=1759#a1759</guid>
<pubDate>Fri, 10 Jun 2022 09:59:21 +0000</pubDate>
</item>
<item>
<title>Edited: List python logical operators with description.</title>
<link>https://aiforkids.in/qa/1500/list-python-logical-operators-with-description?show=1500#q1500</link>
<description>


&lt;p&gt;List python logical operators with description.&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:100%; border-spacing: 1px;&quot;&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td&gt;Topic&lt;/td&gt;

&lt;td&gt;Python (Programming)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Type&lt;/td&gt;

&lt;td&gt;Short Answer Type&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Class&lt;/td&gt;

&lt;td&gt;9&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;p&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/1500/list-python-logical-operators-with-description?show=1500#q1500</guid>
<pubDate>Fri, 10 Jun 2022 05:21:59 +0000</pubDate>
</item>
<item>
<title>Edited: Differentiate between modulus and floor division.</title>
<link>https://aiforkids.in/qa/1498/differentiate-between-modulus-and-floor-division?show=1498#q1498</link>
<description>


&lt;p&gt;Differentiate between modulus and floor division.&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:100%; border-spacing: 1px;&quot;&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td&gt;Topic&lt;/td&gt;

&lt;td&gt;Python (Programming)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Type&lt;/td&gt;

&lt;td&gt;Short Answer Type&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Class&lt;/td&gt;

&lt;td&gt;9&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;p&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/1498/differentiate-between-modulus-and-floor-division?show=1498#q1498</guid>
<pubDate>Fri, 10 Jun 2022 05:21:03 +0000</pubDate>
</item>
<item>
<title>Edited: Define python comparison operators with examples.</title>
<link>https://aiforkids.in/qa/1496/define-python-comparison-operators-with-examples?show=1496#q1496</link>
<description>


&lt;p&gt;Define python comparison operators with examples.&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:100%; border-spacing: 1px;&quot;&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td&gt;Topic&lt;/td&gt;

&lt;td&gt;Python (Programming)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Type&lt;/td&gt;

&lt;td&gt;Short Answer Type&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Class&lt;/td&gt;

&lt;td&gt;9&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;p&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/1496/define-python-comparison-operators-with-examples?show=1496#q1496</guid>
<pubDate>Fri, 10 Jun 2022 05:19:50 +0000</pubDate>
</item>
<item>
<title>Edited: Define python arithmetic operators with examples.</title>
<link>https://aiforkids.in/qa/1494/define-python-arithmetic-operators-with-examples?show=1494#q1494</link>
<description>


&lt;p&gt;Define python arithmetic operators with examples.&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:100%; border-spacing: 1px;&quot;&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td&gt;Topic&lt;/td&gt;

&lt;td&gt;Python (Programming)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Type&lt;/td&gt;

&lt;td&gt;Short Answer Type&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Class&lt;/td&gt;

&lt;td&gt;9&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;p&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/1494/define-python-arithmetic-operators-with-examples?show=1494#q1494</guid>
<pubDate>Fri, 10 Jun 2022 05:18:32 +0000</pubDate>
</item>
<item>
<title>Answer edited: What is type conversion ? Explain the types of type conversion with the help of an example</title>
<link>https://aiforkids.in/qa/825/what-type-conversion-explain-types-type-conversion-example?show=1615#a1615</link>
<description>In computer science, type conversion or typecasting refers to changing an entity of one datatype into another. There are two types of conversion: implicit and explicit. The term for implicit type conversion is coercion. Explicit type conversion in some specific way is known as casting. Explicit type conversion can also be achieved with separately defined conversion routines such as an overloaded object constructor.</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/825/what-type-conversion-explain-types-type-conversion-example?show=1615#a1615</guid>
<pubDate>Wed, 08 Jun 2022 14:56:28 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to display sum of odd numbers and even numbers that fall between 12 and 37(including both numbers)</title>
<link>https://aiforkids.in/qa/803/program-display-numbers-numbers-between-including-numbers?show=1457#a1457</link>
<description>


&lt;p&gt;# Python Program to find Sum of Even and Odd Numbers from 12 to 37&lt;/p&gt;

&lt;p&gt;minimum = int(input(&quot; Please Enter the Minimum Value : &quot;))&amp;nbsp;&lt;/p&gt;

&lt;p&gt;maximum = int(input(&quot; Please Enter the Maximum Value : &quot;))&lt;/p&gt;

&lt;p&gt;even_total = 0&lt;/p&gt;

&lt;p&gt;odd_total = 0&lt;/p&gt;

&lt;p&gt;for number in range(minimum, maximum + 1):&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if(number % 2 == 0):&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; even_total = even_total + number&lt;/p&gt;

&lt;p&gt;else:&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; odd_total = odd_total + number&lt;/p&gt;

&lt;p&gt;print(&quot;The Sum of Even Numbers from 12 to 37 = {1}&quot;.format(number, even_total))&lt;/p&gt;

&lt;p&gt;print(&quot;The Sum of Odd Numbers from 12 to 37 = {1}&quot;.format(number, odd_total))&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/803/program-display-numbers-numbers-between-including-numbers?show=1457#a1457</guid>
<pubDate>Mon, 06 Jun 2022 10:15:37 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to print numbers from 1 to 20 except multiple of 2 &amp; 3.</title>
<link>https://aiforkids.in/qa/805/write-program-to-print-numbers-from-to-20-except-multiple-of?show=1456#a1456</link>
<description>


&lt;p&gt;# to print numbers from 1 to 20 except multiple of 2 &amp;amp; 3&lt;/p&gt;

&lt;p&gt;for x in range(20):&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; if (x == 2 or x==3):&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; print(x,end=&#039; &#039;)&lt;/p&gt;

&lt;p&gt;print(&quot;\n&quot;)&lt;/p&gt;

&lt;div&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python &lt;/strong&gt;at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/805/write-program-to-print-numbers-from-to-20-except-multiple-of?show=1456#a1456</guid>
<pubDate>Mon, 06 Jun 2022 10:09:45 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to print first 10 even numbers in reverse order</title>
<link>https://aiforkids.in/qa/795/write-program-to-print-first-10-even-numbers-in-reverse-order?show=1455#a1455</link>
<description>


&lt;p&gt;a=int(input(&quot;Enter number:&quot;))&lt;/p&gt;

&lt;p&gt;while a&amp;gt;=2:&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; print(a)&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; a=a-2&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python &lt;/strong&gt;at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/795/write-program-to-print-first-10-even-numbers-in-reverse-order?show=1455#a1455</guid>
<pubDate>Mon, 06 Jun 2022 10:05:35 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to print table of a number accepted from user</title>
<link>https://aiforkids.in/qa/796/write-a-program-to-print-table-of-a-number-accepted-from-user?show=1454#a1454</link>
<description>


&lt;p&gt;number = int(input (&quot;Enter the number of which the user wants to print the multiplication table: &quot;))&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;print (&quot;The Multiplication Table of: &quot;, number)&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;for count in range(1, 11):&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp;print (number, &#039;x&#039;, count, &#039;=&#039;, number * count)&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/796/write-a-program-to-print-table-of-a-number-accepted-from-user?show=1454#a1454</guid>
<pubDate>Mon, 06 Jun 2022 10:02:16 +0000</pubDate>
</item>
<item>
<title>Answered: Accept 10 numbers from the user and display their average.</title>
<link>https://aiforkids.in/qa/801/accept-10-numbers-from-the-user-and-display-their-average?show=1453#a1453</link>
<description>


&lt;p&gt;#accept 10 numbers from the user and display their average&lt;/p&gt;

&lt;p&gt;no1= int(input(&quot;Enter 1 number:&quot;))&lt;/p&gt;

&lt;p&gt;no2=int(input(&quot;Enter 2 number:&quot;))&lt;/p&gt;

&lt;p&gt;no3=int(input(&quot;Enter 3 number:&quot;))&lt;/p&gt;

&lt;p&gt;s= no1+no2+no3&lt;/p&gt;

&lt;p&gt;a=(no1+no2+no3)/3&lt;/p&gt;

&lt;p&gt;print(s)&lt;/p&gt;

&lt;p&gt;print(a)&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/801/accept-10-numbers-from-the-user-and-display-their-average?show=1453#a1453</guid>
<pubDate>Mon, 06 Jun 2022 09:56:30 +0000</pubDate>
</item>
<item>
<title>Answered: What are the different properties of an identifier ?</title>
<link>https://aiforkids.in/qa/822/what-are-the-different-properties-of-an-identifier?show=1452#a1452</link>
<description>


&lt;p&gt;&lt;span style=&quot;color:#34495e; font-family:Ubuntu,Helvetica,Arial,FreeSans,sans-serif&quot;&gt;Properties of an identifier are-&lt;/span&gt;&lt;/p&gt;

&lt;ol&gt;

&lt;li&gt;&lt;span style=&quot;color:#202124; font-family:arial,sans-serif&quot;&gt;Identifiers can be a combination of letters in lowercase (a to z) or uppercase (A to Z) or digits (0 to 9) or an underscore _&amp;nbsp; .&lt;/span&gt;&lt;/li&gt;

&lt;li&gt;&lt;span style=&quot;color:#202124; font-family:arial,sans-serif&quot;&gt;An identifier cannot start with a digit.&lt;/span&gt;&lt;/li&gt;

&lt;li&gt;&lt;span style=&quot;color:#202124; font-family:arial,sans-serif&quot;&gt;Keywords cannot be used as identifiers.&lt;/span&gt;&lt;/li&gt;

&lt;li&gt;&lt;span style=&quot;color:#202124; font-family:arial,sans-serif&quot;&gt;We cannot use special symbols like !, @, #, $, % etc.&lt;/span&gt;&lt;/li&gt;

&lt;li&gt;&lt;span style=&quot;color:#202124; font-family:arial, sans-serif&quot;&gt;An identifier can be of any length.&lt;/span&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/822/what-are-the-different-properties-of-an-identifier?show=1452#a1452</guid>
<pubDate>Mon, 06 Jun 2022 09:50:14 +0000</pubDate>
</item>
<item>
<title>Answered: Which data type will be used to represent the following data values and why?</title>
<link>https://aiforkids.in/qa/811/which-data-type-will-used-represent-the-following-data-values?show=1451#a1451</link>
<description>


&lt;ol&gt;

&lt;li&gt;int as it can&amp;rsquo;t be string or float&lt;/li&gt;

&lt;li&gt;boolean as it is a condition like &amp;lsquo;either or&amp;rsquo;&lt;/li&gt;

&lt;li&gt;int as it can&amp;rsquo;t be float or string&lt;/li&gt;

&lt;li&gt;float as it can be a decimal value i.e. 10.50&lt;/li&gt;

&lt;li&gt;float as volume of sphere = 4/3( * r3), value of = 3.14 and r value can be decimal i.e. 4.5 unit&lt;/li&gt;

&lt;li&gt;float as perimeter = 4 * length of side, the length of side can be a decimal value&lt;/li&gt;

&lt;li&gt;string as the name is a combination of characters&lt;/li&gt;

&lt;li&gt;string as an address is the concatenated form of different strings.

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python &lt;/strong&gt;at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/811/which-data-type-will-used-represent-the-following-data-values?show=1451#a1451</guid>
<pubDate>Mon, 06 Jun 2022 09:46:22 +0000</pubDate>
</item>
<item>
<title>Answered: What is Python? What are the benefits of using Python?</title>
<link>https://aiforkids.in/qa/809/what-is-python-what-are-the-benefits-of-using-python?show=1428#a1428</link>
<description>


&lt;p&gt;&lt;span style=&quot;background-color:#f0f7fb; color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;Python is a High-Level Multipurpose Interpreted Programming language that is becoming popular day by day.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;background-color:#f0f7fb; color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;Benefits of using Python&lt;/span&gt;&lt;/p&gt;

&lt;div class=&quot;entry-content&quot; style=&#039;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(33, 37, 41); font-family: system-ui, -apple-system, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, &quot;Noto Sans&quot;, &quot;Liberation Sans&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Color Emoji&quot;; user-select: auto;&#039;&gt;

&lt;div class=&quot;wp-block-wpsp-faq wpsp-faq__outer-wrap wpsp-block-db6f88a7 wpsp-faq-icon-row wpsp-faq-layout-accordion wpsp-faq-expand-first-true wpsp-faq-inactive-other-false wpsp-faq-equal-height p-tag&quot; data-faqtoggle=&quot;true&quot; role=&quot;tablist&quot; style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); color: rgb(55, 55, 56); font: var(--font-p); user-select: auto;&quot;&gt;

&lt;div class=&quot;wpsp-faq__wrap wpsp-buttons-layout-wrap&quot; style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); user-select: auto;&quot;&gt;

&lt;div class=&quot;wp-block-wpsp-faq-child wpsp-faq-child__outer-wrap wpsp-block-4dda4bbd&quot; style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-bottom: 10px; user-select: auto;&quot;&gt;

&lt;div class=&quot;wpsp-faq-child__wrapper&quot; style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); user-select: auto;&quot;&gt;

&lt;div class=&quot;wpsp-faq-item wpsp-faq-item-active&quot; role=&quot;tab&quot; tabindex=&quot;0&quot; aria-expanded=&quot;true&quot; style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); border-style: solid; border-width: 2px; border-radius: 5px; border-color: rgb(210, 210, 210); outline: dotted thin; user-select: auto;&quot;&gt;

&lt;div class=&quot;wpsp-faq-content&quot; style=&quot;box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); border-style: solid; border-top-color: rgb(210, 210, 210); border-width: 2px 0px 0px; user-select: auto;&quot;&gt;

&lt;p style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 0px; font: var(--font-p)  !important; color: rgb(49, 49, 49); user-select: auto;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color:rgba(0, 0, 0, 0); box-sizing:inherit; display:inline-block; margin:20px; user-select:auto&quot;&gt;1. Easy to Learn, Read and Maintain &amp;ndash; Highly Productive
&lt;br style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); user-select: auto;&quot;&gt;2. Supports both Object and Procedure Oriented Programming
&lt;br style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); user-select: auto;&quot;&gt;3. 100ds of Libraries and Frameworks
&lt;br style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); user-select: auto;&quot;&gt;4. The flexibility of Python Language
&lt;br style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); user-select: auto;&quot;&gt;5. Big data, Machine Learning and Cloud Computing
&lt;br style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); user-select: auto;&quot;&gt;6. Versatility, Efficiency, Reliability, and Speed
&lt;br style=&quot;box-sizing: inherit; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); user-select: auto;&quot;&gt;7. Databases and Scalable&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/809/what-is-python-what-are-the-benefits-of-using-python?show=1428#a1428</guid>
<pubDate>Sun, 05 Jun 2022 11:06:12 +0000</pubDate>
</item>
<item>
<title>Answered: Accept a number and check whether it is palindrome or not</title>
<link>https://aiforkids.in/qa/808/accept-a-number-and-check-whether-it-is-palindrome-or-not?show=1427#a1427</link>
<description>


&lt;p&gt;n=int(input(&quot;Enter number:&quot;))&lt;/p&gt;

&lt;p&gt;temp=n&lt;/p&gt;

&lt;p&gt;rev=0&lt;/p&gt;

&lt;p&gt;while(n&amp;gt;0):&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; dig=n%10&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; rev=rev*10+dig&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; n=n//10&lt;/p&gt;

&lt;p&gt;if(temp==rev):&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; print(&quot;The number is a palindrome!&quot;)&lt;/p&gt;

&lt;p&gt;else:&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; print(&quot;The number isn&#039;t a palindrome!&quot;)&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/808/accept-a-number-and-check-whether-it-is-palindrome-or-not?show=1427#a1427</guid>
<pubDate>Sun, 05 Jun 2022 11:00:56 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to swap two numbers using a third variable</title>
<link>https://aiforkids.in/qa/812/write-a-program-to-swap-two-numbers-using-a-third-variable?show=1426#a1426</link>
<description>


&lt;p&gt;x = 1&amp;nbsp;&lt;/p&gt;

&lt;p&gt;y = 2&amp;nbsp;&lt;/p&gt;

&lt;p&gt;print(f&#039;Before swapping x is {x} and y is {y}.&#039;)&lt;/p&gt;

&lt;p&gt;temp = x # temp = 1&amp;nbsp;&lt;/p&gt;

&lt;p&gt;x = y # x = 2&lt;/p&gt;

&lt;p&gt;y = temp # y = 1&amp;nbsp;&lt;/p&gt;

&lt;p&gt;print(f&#039;After swapping x is {x} and y is {y}.&#039;)&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/812/write-a-program-to-swap-two-numbers-using-a-third-variable?show=1426#a1426</guid>
<pubDate>Sun, 05 Jun 2022 10:58:28 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to print all prime numbers  that fall between two numbers including both(accept two numbers from the user)</title>
<link>https://aiforkids.in/qa/802/program-numbers-between-numbers-including-accept-numbers?show=1425#a1425</link>
<description>


&lt;p&gt;# Python program to display all the prime numbers within an interval&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;lower =int(input(&quot;Enter your number: &quot;))&amp;nbsp;&lt;/p&gt;

&lt;p&gt;upper = int(input(&quot;Enter your number: &quot;))&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;print(&quot;Prime numbers between&quot;, lower, &quot;and&quot;, upper, &quot;are:&quot;)&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;for num in range(lower, upper + 1):&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp;# all prime numbers are greater than 1&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp;if num &amp;gt; 1:&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for i in range(2, num):&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (num % i) == 0:&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else:&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print(num)&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/802/program-numbers-between-numbers-including-accept-numbers?show=1425#a1425</guid>
<pubDate>Sun, 05 Jun 2022 10:56:53 +0000</pubDate>
</item>
<item>
<title>Answered: The volume of a sphere with radius r is 4/3πr3. Write a Python program to find the volume of spheres with radius 7cm, 12cm, 16cm, respectively.</title>
<link>https://aiforkids.in/qa/816/volume-sphere-radius-python-program-spheres-respectively?show=1424#a1424</link>
<description>


&lt;p&gt;#defining three different radius using variables r1, r2, r3&lt;/p&gt;

&lt;p&gt;r1 = 7&lt;/p&gt;

&lt;p&gt;r2 = 12&lt;/p&gt;

&lt;p&gt;r3 = 16&lt;/p&gt;

&lt;p&gt;#calculating the volume using the formula&lt;/p&gt;

&lt;p&gt;volume1 = (4/3*22/7*r1**3)&lt;/p&gt;

&lt;p&gt;volume2 = (4/3*22/7*r2**3)&lt;/p&gt;

&lt;p&gt;volume3 = (4/3*22/7*r3**3)&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;#printing the volume after using the round function to two decimal place for better readability&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;print(&quot;When the radius is&quot;,r1,&quot;cm, the volume of the sphere will be&quot;, round(volume1,2),&quot;cc&quot;)&lt;/p&gt;

&lt;p&gt;print(&quot;When the radius is&quot;,r2,&quot;cm, the volume of the sphere will be&quot;, round(volume2,2),&quot;cc&quot;)&lt;/p&gt;

&lt;p&gt;print(&quot;When the radius is&quot;,r3,&quot;cm, the volume of the sphere will be&quot;, round(volume3,2),&quot;cc&quot;)&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/816/volume-sphere-radius-python-program-spheres-respectively?show=1424#a1424</guid>
<pubDate>Sun, 05 Jun 2022 10:52:46 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to swap two numbers without using a third variable.</title>
<link>https://aiforkids.in/qa/813/write-program-swap-two-numbers-without-using-third-variable?show=1419#a1419</link>
<description>


&lt;p&gt;x = 10&lt;/p&gt;

&lt;p&gt;y = 11&lt;/p&gt;

&lt;p&gt;print(f&#039;Before swapping x is {x} and y is {y}.&#039;)&lt;/p&gt;

&lt;p&gt;x = x + y # 21&lt;/p&gt;

&lt;p&gt;y = x - y # 10&lt;/p&gt;

&lt;p&gt;x = x - y # 11&lt;/p&gt;

&lt;p&gt;print(f&#039;After swapping x is {x} and y is {y}.&#039;)&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/813/write-program-swap-two-numbers-without-using-third-variable?show=1419#a1419</guid>
<pubDate>Sun, 05 Jun 2022 10:28:31 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to repeat the string ‘‘GOOD MORNING” n times. Here ‘n’ is an integer entered by the user</title>
<link>https://aiforkids.in/qa/814/write-program-repeat-string-morning-times-integer-entered?show=1417#a1417</link>
<description>


&lt;p&gt;n = int(input(&#039;Enter value: &#039;)) # user input&lt;/p&gt;

&lt;p&gt;for i in range(n):&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; print(&#039;GOODMORNING&#039;)&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/814/write-program-repeat-string-morning-times-integer-entered?show=1417#a1417</guid>
<pubDate>Sun, 05 Jun 2022 10:12:42 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program that asks the user to enter their name and age. Print a message addressed to the user that tells the user the year in which they will turn 100 years old.</title>
<link>https://aiforkids.in/qa/817/write-program-enter-their-print-message-addressed-tells-which?show=1416#a1416</link>
<description>


&lt;p&gt;name = input(&quot;Enter your name: &quot;) # user input&lt;/p&gt;

&lt;p&gt;current_age = int(input(&quot;Enter your age: &quot;)) # user input&lt;/p&gt;

&lt;p&gt;#calculating the 100th year, considering 2020 as the current year&lt;/p&gt;

&lt;p&gt;hundredth_year = 2020 + (100 - current_age)&lt;/p&gt;

&lt;p&gt;print(f&#039;{name} will become 100 years old in the year {hundredth_year}.&#039;)&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about Python at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/817/write-program-enter-their-print-message-addressed-tells-which?show=1416#a1416</guid>
<pubDate>Sun, 05 Jun 2022 10:10:04 +0000</pubDate>
</item>
<item>
<title>Answered: Write a Python program to find the area of a rectangle given that its length is 10 units and breadth is 20 units.</title>
<link>https://aiforkids.in/qa/810/write-python-program-rectangle-given-length-units-breadth?show=1407#a1407</link>
<description>


&lt;p&gt;# Python Program to find Area of a Rectangle&lt;/p&gt;

&lt;p&gt;length = float(input(&#039;Please Enter the Width of a Rectangle: &#039;))&lt;/p&gt;

&lt;p&gt;breadth = float(input(&#039;Please Enter the Height of a Rectangle: &#039;))&lt;/p&gt;

&lt;p&gt;Area = length*breadth&lt;/p&gt;

&lt;p&gt;print(Area)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OR&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;# Python Program to find Area of a Rectangle&lt;/p&gt;

&lt;p&gt;length = 10&lt;/p&gt;

&lt;p&gt;breadth = 20&lt;/p&gt;

&lt;p&gt;Area = length*breadth&lt;/p&gt;

&lt;p&gt;print(Area)&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about&lt;strong&gt; Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;http://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/810/write-python-program-rectangle-given-length-units-breadth?show=1407#a1407</guid>
<pubDate>Sun, 05 Jun 2022 09:34:40 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to print first 10 natural number</title>
<link>https://aiforkids.in/qa/792/write-a-program-to-print-first-10-natural-number?show=1405#a1405</link>
<description>


&lt;p&gt;print(&quot;====The First 10 Natural Numbers====&quot;)&lt;/p&gt;

&lt;p&gt;i = 1&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;while(i &amp;lt;= 10):&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; print(i)&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; i = i + 1&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about&lt;strong&gt; Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/792/write-a-program-to-print-first-10-natural-number?show=1405#a1405</guid>
<pubDate>Sun, 05 Jun 2022 09:28:46 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to find the factorial of a number</title>
<link>https://aiforkids.in/qa/798/write-a-program-to-find-the-factorial-of-a-number?show=1404#a1404</link>
<description>


&lt;p&gt;num = int(input(&quot;Enter a number: &quot;))&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;factorial = 1&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;if num &amp;lt; 0:&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp;print(&quot; Factorial does not exist for negative numbers&quot;)&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;elif num == 0:&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp;print(&quot;The factorial of 0 is 1&quot;)&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;else:&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp;for i in range(1,num + 1):&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;factorial = factorial*i&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp;print(&quot;The factorial of&quot;,num,&quot;is&quot;,factorial)&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/798/write-a-program-to-find-the-factorial-of-a-number?show=1404#a1404</guid>
<pubDate>Sun, 05 Jun 2022 09:21:30 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to find the sum of the digits of a number accepted from user</title>
<link>https://aiforkids.in/qa/799/write-program-find-the-sum-digits-number-accepted-from-user?show=1403#a1403</link>
<description>


&lt;p&gt;#Python program to find the sum of the input number&lt;/p&gt;

&lt;p&gt;Number1=float(input(&quot;enter Number 1:&quot;))&lt;/p&gt;

&lt;p&gt;#&amp;nbsp;to take the number1 as an input by the user.&lt;/p&gt;

&lt;p&gt;Number2=float(input(&quot;enter Number 2:&quot;))&lt;/p&gt;

&lt;p&gt;#&amp;nbsp;to take the number2 as an input by the user.&lt;/p&gt;

&lt;p&gt;Sum=Number1+Number2&lt;/p&gt;

&lt;p&gt;# formula for the calculation of sum&lt;/p&gt;

&lt;p&gt;print(Sum)&lt;/p&gt;

&lt;p&gt;# print sum&amp;nbsp;of two numbers.&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/799/write-program-find-the-sum-digits-number-accepted-from-user?show=1403#a1403</guid>
<pubDate>Sun, 05 Jun 2022 09:18:35 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to display product of the digits of a number accepted from the user</title>
<link>https://aiforkids.in/qa/797/write-program-display-product-digits-number-accepted-from?show=1402#a1402</link>
<description>


&lt;p&gt;#Python program to find the product of the input number&lt;/p&gt;

&lt;p&gt;Number1=float(input(&quot;enter Number 1:&quot;))&lt;/p&gt;

&lt;p&gt;#&amp;nbsp;to take the number1 as an input by the user.&lt;/p&gt;

&lt;p&gt;Number2=float(input(&quot;enter Number 2:&quot;))&lt;/p&gt;

&lt;p&gt;#&amp;nbsp;to take the number2 as an input by the user.&lt;/p&gt;

&lt;p&gt;Product=Number1*Number2&lt;/p&gt;

&lt;p&gt;#&amp;nbsp;formula for the calculation of product&lt;/p&gt;

&lt;p&gt;print(Product)&lt;/p&gt;

&lt;p&gt;#&amp;nbsp;print product of two numbers.&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/797/write-program-display-product-digits-number-accepted-from?show=1402#a1402</guid>
<pubDate>Sun, 05 Jun 2022 09:16:17 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to check whether a number is prime or not</title>
<link>https://aiforkids.in/qa/800/write-a-program-to-check-whether-a-number-is-prime-or-not?show=1354#a1354</link>
<description>


&lt;pre&gt;# Program to check if a number is prime or not

num = 407

# To take input from the user
#num = int(input(&quot;Enter a number: &quot;))

# prime numbers are greater than 1
if num &amp;gt; 1:
   # check for factors
   for i in range(2,num):
       if (num % i) == 0:
           print(num,&quot;is not a prime number&quot;)
           print(i,&quot;times&quot;,num//i,&quot;is&quot;,num)
           break
   else:
       print(num,&quot;is a prime number&quot;)
       
# if input number is less than
# or equal to 1, it is not prime
else:
   print(num,&quot;is not a prime number&quot;)
&lt;/pre&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/800/write-a-program-to-check-whether-a-number-is-prime-or-not?show=1354#a1354</guid>
<pubDate>Sat, 04 Jun 2022 10:58:13 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to print first 10 odd numbers</title>
<link>https://aiforkids.in/qa/794/write-a-program-to-print-first-10-odd-numbers?show=1328#a1328</link>
<description>


&lt;p&gt;print(&quot;====The First 10 Odd Natural Numbers====&quot;)&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;for i in range(1, 11):&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; print(2 * i - 1)&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/794/write-a-program-to-print-first-10-odd-numbers?show=1328#a1328</guid>
<pubDate>Sat, 04 Jun 2022 10:08:29 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to print first 10 even numbers</title>
<link>https://aiforkids.in/qa/793/write-a-program-to-print-first-10-even-numbers?show=1327#a1327</link>
<description>


&lt;p&gt;print(&quot;====The First 10 Even Natural Numbers====&quot;)&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;for i in range(1, 11):&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; print(2 * i)&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python &lt;/strong&gt;at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/793/write-a-program-to-print-first-10-even-numbers?show=1327#a1327</guid>
<pubDate>Sat, 04 Jun 2022 10:07:01 +0000</pubDate>
</item>
<item>
<title>Answered: Write a program to find average of three numbers.</title>
<link>https://aiforkids.in/qa/815/write-a-program-to-find-average-of-three-numbers?show=1289#a1289</link>
<description>


&lt;p&gt;a = int (input(&quot; Please Enter the First Number: &quot;))&amp;nbsp;&lt;/p&gt;

&lt;p&gt;b = int (input(&quot; Please Enter the second number: &quot;))&lt;/p&gt;

&lt;p&gt;c= int (input(&quot; Please Enter the third number: &quot;))&lt;/p&gt;

&lt;p&gt;average=(a+b+c)/3&lt;/p&gt;

&lt;p&gt;print(&quot;The average of three numbers is &quot;, average)&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/jupyter-notebook-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/815/write-a-program-to-find-average-of-three-numbers?show=1289#a1289</guid>
<pubDate>Sat, 04 Jun 2022 00:27:50 +0000</pubDate>
</item>
<item>
<title>Answered: What are the different modes for coding in python?</title>
<link>https://aiforkids.in/qa/820/what-are-the-different-modes-for-coding-in-python?show=1262#a1262</link>
<description>


&lt;p&gt;There are 2 modes of coding in python these are &lt;strong&gt;Interactive mode and Script mode&lt;/strong&gt;.&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Study more about &lt;strong&gt;Python&lt;/strong&gt; at&amp;nbsp;&lt;a rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python-statements-and-comments-class-10/&quot;&gt;Python Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/820/what-are-the-different-modes-for-coding-in-python?show=1262#a1262</guid>
<pubDate>Fri, 03 Jun 2022 06:37:18 +0000</pubDate>
</item>
<item>
<title>Answer selected: What is a variable? Give example</title>
<link>https://aiforkids.in/qa/826/what-is-a-variable-give-example?show=828#a828</link>
<description>


&lt;p&gt;&lt;strong&gt;Variables &lt;/strong&gt;in Programming act like containers that can &lt;strong&gt;store different types of data&lt;/strong&gt; or any &lt;strong&gt;data value in them&lt;/strong&gt;, a variable in a python program gives data to the computer for processing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Features of Variables in Python:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;

&lt;li&gt;Variables play an important role while writing a code.&lt;/li&gt;

&lt;li&gt;Variables are the containers that stores some values&lt;/li&gt;

&lt;li&gt;All the variables consist of some values assigned to them.&lt;/li&gt;&lt;/ol&gt;

&lt;div&gt;&lt;strong&gt;Example of a Variable in Python:&lt;/strong&gt;&lt;/div&gt;

&lt;pre&gt;&lt;code&gt;x &lt;span style=&quot;background-color:rgba(255, 255, 255, 0.5)&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#669900&quot;&gt;&quot;Your Name&quot;&lt;/span&gt; 
&lt;span style=&quot;color:#0077aa&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color:#999999&quot;&gt;(&lt;/span&gt;x&lt;span style=&quot;color:#999999&quot;&gt;)&lt;/span&gt;

&lt;span style=&quot;color:slategray&quot;&gt;# This is a string (Data Type) here &#039;x&#039; is a variable&lt;/span&gt; &lt;/code&gt;&lt;/pre&gt;

&lt;hr&gt;

&lt;p&gt;Learn More about Python Variables at - &lt;a target=&quot;_blank&quot; rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/basics-of-python/#variables-in-python&quot;&gt;Python Variables Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/826/what-is-a-variable-give-example?show=828#a828</guid>
<pubDate>Wed, 12 Jan 2022 22:40:12 +0000</pubDate>
</item>
<item>
<title>Answer selected: What are comments in python ? List down the various types of comments.</title>
<link>https://aiforkids.in/qa/821/what-are-comments-python-list-down-the-various-types-comments?show=834#a834</link>
<description>


&lt;p&gt;Comments are the piece of code that is generally ignored by the Interpreter, it helps the programmer to keep track of the code, organize it properly, and Maintain the code collectively in a team.&lt;/p&gt;

&lt;p&gt;It&amp;rsquo;s helpful and considered good practice to comment on your code because&lt;/p&gt;

&lt;p&gt;There are 2 types of comments in Python:&lt;/p&gt;

&lt;ul&gt;

&lt;li&gt;Single Line Comments&amp;nbsp;&lt;/li&gt;

&lt;li&gt;Multiline Comments.&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Single Line Comments in Python:&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;

&lt;div&gt;&lt;/div&gt;

&lt;div&gt;

&lt;div&gt;Single-Line Comments&lt;/div&gt;

&lt;div&gt;In python single comments are denoted by &amp;ldquo;#&amp;rdquo;, like the example given below. The interpreter ignores all the text after #&lt;/div&gt;

&lt;p&gt;&lt;/p&gt;

&lt;div&gt;

&lt;pre&gt;&lt;span style=&quot;color:slategray&quot;&gt;#this line is a comment&lt;/span&gt;

&lt;span style=&quot;color:#0077aa&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color:#999999&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#669900&quot;&gt;&#039;Hello&#039;&lt;/span&gt;&lt;span style=&quot;color:#999999&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color:slategray&quot;&gt;# anything after hash is a comment like this&lt;/span&gt;
&lt;/pre&gt;

&lt;div&gt;&lt;strong&gt;&lt;span style=&#039;color:#373738; font-family:sans-serif,Arial,Verdana,&quot;Trebuchet MS&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;&#039;&gt;Multiline Comments in Python:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div&gt;Here, the multiline string isn&amp;rsquo;t assigned to any variable, so it is ignored by the interpreter. Even though it is not technically a multiline comment, it can be used as one.&lt;span style=&#039;font-family:sans-serif,Arial,Verdana,&quot;Trebuchet MS&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;&#039;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;

&lt;pre&gt;&lt;span style=&quot;color:#669900&quot;&gt;&#039;&#039;&#039;
I am a
multiline comment!
&#039;&#039;&#039;&lt;/span&gt;
&lt;span style=&quot;color:#0077aa&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color:#999999&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#669900&quot;&gt;&quot;Hello World!&quot;&lt;/span&gt;&lt;span style=&quot;color:#999999&quot;&gt;)&lt;/span&gt;

&lt;span style=&quot;color:#669900&quot;&gt;&quot;&quot;&quot;
I am a also
multiline comment!
&quot;&quot;&quot;&lt;/span&gt;&lt;/pre&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/821/what-are-comments-python-list-down-the-various-types-comments?show=834#a834</guid>
<pubDate>Mon, 10 Jan 2022 01:01:47 +0000</pubDate>
</item>
<item>
<title>Answered: Explain python input and output with the help of an example</title>
<link>https://aiforkids.in/qa/824/explain-python-input-and-output-with-the-help-of-an-example?show=833#a833</link>
<description>


&lt;h2&gt;How to take User Input in Python&lt;/h2&gt;

&lt;div&gt;Sometimes it happens that the programmer or the developer&amp;nbsp;might want to take user input in the Program.&lt;/div&gt;

&lt;p&gt;For Example: While making a program that can add two numbers, you need the user input for the 2 numbers.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Python Provides the input() function for this task, Which can be written as.&lt;/p&gt;

&lt;pre class=&quot;language-python&quot; tabindex=&quot;0&quot; style=&#039;margin-top: 0.5em; margin-bottom: 0.5em; padding: 1em; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; hyphens: none; max-height: 30em; overflow: auto; color: rgb(0, 0, 0); background: rgb(245, 242, 240); text-shadow: white 0px 1px; white-space: pre; word-break: normal; overflow-wrap: normal; line-height: 1.5;&#039;&gt;&lt;code class=&quot;language-python&quot; style=&#039;margin: 0px; padding: 0px; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; hyphens: none; background: none; text-shadow: white 0px 1px; font-size: 1em; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4;&#039;&gt;&lt;span style=&quot;color:#0077aa; margin:0px; padding:0px&quot; class=&quot;keyword token&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#669900; margin:0px; padding:0px&quot; class=&quot;string token&quot;&gt;&quot;Some text to show&quot;&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;)&lt;/span&gt;&lt;/code&gt;
&lt;/pre&gt;

&lt;p&gt;Here, instead of &quot;&lt;em&gt;Some text to show&quot;&amp;nbsp;&lt;/em&gt;you can write any text you want to show the user before the Input Area.&lt;/p&gt;

&lt;h2&gt;How to Display Output in Python&lt;/h2&gt;

&lt;div&gt;

&lt;div&gt;Python provides the print() function to display output when used, for Example:&lt;/div&gt;

&lt;div&gt;

&lt;pre class=&quot;language-python&quot; tabindex=&quot;0&quot; style=&#039;white-space: pre; overflow-wrap: normal; margin-top: 0.5em; margin-bottom: 0.5em; padding: 1em; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; hyphens: none; max-height: 30em; overflow: auto; color: rgb(0, 0, 0); background: rgb(245, 242, 240); text-shadow: white 0px 1px; word-break: normal; line-height: 1.5;&#039;&gt;&lt;code class=&quot;language-python&quot; style=&#039;margin: 0px; padding: 0px; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; hyphens: none; background: none; text-shadow: white 0px 1px; font-size: 1em; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4;&#039;&gt;&lt;span style=&quot;color:#0077aa; margin:0px; padding:0px&quot; class=&quot;keyword token&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#669900; margin:0px; padding:0px&quot; class=&quot;string token&quot;&gt;&quot;Hello World&quot;&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;pre class=&quot;language-python&quot; tabindex=&quot;0&quot; style=&#039;white-space: pre; overflow-wrap: normal; margin-top: 0.5em; margin-bottom: 0.5em; padding: 1em; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; hyphens: none; max-height: 30em; overflow: auto; color: rgb(0, 0, 0); background: rgb(245, 242, 240); text-shadow: white 0px 1px; word-break: normal; line-height: 1.5;&#039;&gt;&lt;code class=&quot;language-python&quot; style=&#039;margin: 0px; padding: 0px; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; hyphens: none; background: none; text-shadow: white 0px 1px; font-size: 1em; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4;&#039;&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;output: &lt;em&gt;Hello World&lt;/em&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/824/explain-python-input-and-output-with-the-help-of-an-example?show=833#a833</guid>
<pubDate>Sun, 09 Jan 2022 23:58:49 +0000</pubDate>
</item>
<item>
<title>Answer selected: The formula E = mc2 states that the equivalent energy (E) can be calculated as the mass (m) multiplied by the speed of light (c = about 3×108 m/s) squared. Write a program that accepts the mass of an object and determines its energy.</title>
<link>https://aiforkids.in/qa/818/formula-equivalent-calculated-multiplied-squared-determines?show=827#a827</link>
<description>


&lt;p&gt;The formula is given as&amp;nbsp;&lt;strong&gt;E = mc&lt;sup&gt;2&lt;/sup&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Where E &amp;rArr; energy is measured in Joule,&lt;/p&gt;

&lt;p&gt;m &amp;rArr; mass in Kilogram,&lt;/p&gt;

&lt;p&gt;c &amp;rArr; speed of light in m/s.&lt;/p&gt;

&lt;hr&gt;

&lt;pre class=&quot;language-python&quot; tabindex=&quot;0&quot; style=&#039;margin-top: 0.5em; margin-bottom: 0.5em; padding: 1em; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; hyphens: none; max-height: 30em; overflow: auto; color: rgb(0, 0, 0); background: rgb(245, 242, 240); text-shadow: white 0px 1px; white-space: pre; word-break: normal; overflow-wrap: normal; line-height: 1.5;&#039;&gt;&lt;code class=&quot;language-python&quot; style=&#039;margin: 0px; padding: 0px; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; hyphens: none; background: none; text-shadow: white 0px 1px; font-size: 1em; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4;&#039;&gt;&lt;span style=&quot;color:slategray; margin:0px; padding:0px&quot; class=&quot;comment token&quot;&gt;#Program to calculate the equivalent energy of an object 
#asking for the mass in grams 
&lt;/span&gt;
mass &lt;span style=&quot;background-color:rgba(255, 255, 255, 0.5)&quot; class=&quot;operator token&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#669900; margin:0px; padding:0px&quot; class=&quot;builtin token&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#669900; margin:0px; padding:0px&quot; class=&quot;builtin token&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#669900; margin:0px; padding:0px&quot; class=&quot;string token&quot;&gt;&quot;Enter the mass of object(in grams): &quot;&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;)
&lt;/span&gt; 
&lt;span style=&quot;color:slategray; margin:0px; padding:0px&quot; class=&quot;comment token&quot;&gt;#Speed of light is known and given in the question &lt;/span&gt;
c &lt;span style=&quot;background-color:rgba(255, 255, 255, 0.5)&quot; class=&quot;operator token&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#990055; margin:0px; padding:0px&quot; class=&quot;number token&quot;&gt;3&lt;/span&gt; &lt;span style=&quot;background-color:rgba(255, 255, 255, 0.5)&quot; class=&quot;operator token&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color:#990055; margin:0px; padding:0px&quot; class=&quot;number token&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;background-color:rgba(255, 255, 255, 0.5)&quot; class=&quot;operator token&quot;&gt;**&lt;/span&gt; &lt;span style=&quot;color:#990055; margin:0px; padding:0px&quot; class=&quot;number token&quot;&gt;8
&lt;/span&gt; 
&lt;span style=&quot;color:slategray; margin:0px; padding:0px&quot; class=&quot;comment token&quot;&gt;#calculating the energy, mass is divided by 1000 to convert it into kilogram &lt;/span&gt;
Energy &lt;span style=&quot;background-color:rgba(255, 255, 255, 0.5)&quot; class=&quot;operator token&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;(&lt;/span&gt;mass&lt;span style=&quot;background-color:rgba(255, 255, 255, 0.5)&quot; class=&quot;operator token&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color:#990055; margin:0px; padding:0px&quot; class=&quot;number token&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;background-color:rgba(255, 255, 255, 0.5)&quot; class=&quot;operator token&quot;&gt;*&lt;/span&gt; c &lt;span style=&quot;background-color:rgba(255, 255, 255, 0.5)&quot; class=&quot;operator token&quot;&gt;**&lt;/span&gt; &lt;span style=&quot;color:#990055; margin:0px; padding:0px&quot; class=&quot;number token&quot;&gt;2
&lt;/span&gt; 
&lt;span style=&quot;color:slategray; margin:0px; padding:0px&quot; class=&quot;comment token&quot;&gt;#printing the output &lt;/span&gt;
&lt;span style=&quot;color:#0077aa; margin:0px; padding:0px&quot; class=&quot;keyword token&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#669900; margin:0px; padding:0px&quot; class=&quot;string token&quot;&gt;&quot;The energy of an object with mass&quot;&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;,&lt;/span&gt;mass&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#669900; margin:0px; padding:0px&quot; class=&quot;string token&quot;&gt;&quot; grams &quot;&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;,&lt;/span&gt;Energy&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#669900; margin:0px; padding:0px&quot; class=&quot;string token&quot;&gt;&quot;Joule.&quot;&lt;/span&gt;&lt;span style=&quot;color:#999999; margin:0px; padding:0px&quot; class=&quot;punctuation token&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;hr&gt;

&lt;p&gt;Start Learning Python at - &lt;a target=&quot;_blank&quot; rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python&quot;&gt;Python Programming Class 10&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/818/formula-equivalent-calculated-multiplied-squared-determines?show=827#a827</guid>
<pubDate>Sat, 08 Jan 2022 04:03:55 +0000</pubDate>
</item>
<item>
<title>Write a program to accept decimal number and display its binary number.</title>
<link>https://aiforkids.in/qa/807/write-program-accept-decimal-number-display-binary-number</link>
<description>


&lt;p&gt;Write a program to accept decimal number and display its binary number.&amp;nbsp;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:500px&quot;&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td&gt;Topic&lt;/td&gt;

&lt;td&gt;Python Programming&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Type&lt;/td&gt;

&lt;td&gt;Python Program&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Class&lt;/td&gt;

&lt;td&gt;10&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/807/write-program-accept-decimal-number-display-binary-number</guid>
<pubDate>Fri, 07 Jan 2022 04:40:17 +0000</pubDate>
</item>
<item>
<title>Write a program to display all the numbers which are divisible by 11 but not by 2 between 100 and 500.</title>
<link>https://aiforkids.in/qa/804/write-program-display-all-numbers-which-divisible-between</link>
<description>


&lt;p&gt;Write a program to display all the numbers which are divisible by 11 but not by 2 between 100 and 500.&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:500px&quot;&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td&gt;Topic&lt;/td&gt;

&lt;td&gt;Python Programming&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Type&lt;/td&gt;

&lt;td&gt;Python Program&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;Class&lt;/td&gt;

&lt;td&gt;10&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/804/write-program-display-all-numbers-which-divisible-between</guid>
<pubDate>Fri, 07 Jan 2022 04:39:01 +0000</pubDate>
</item>
<item>
<title>Answered: What is Python Class 10?</title>
<link>https://aiforkids.in/qa/766/what-is-python-class-10?show=767#a767</link>
<description>


&lt;p&gt;P&lt;span style=&quot;color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;ython is a&amp;nbsp;&lt;/span&gt;&lt;strong&gt;High-Level, Multipurpose, and Interpreted&lt;/strong&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;&amp;nbsp;programming language that was created by&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Guido Van Rossum&lt;/strong&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;&amp;nbsp;when he was working at&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Centrum Wiskunde and Informatica&lt;/strong&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;.
&lt;br&gt;
&lt;br&gt;It was released in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;1991&lt;/strong&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;&amp;nbsp;and Got its name from a&amp;nbsp;&lt;/span&gt;&lt;strong&gt;BBC comedy series from the 1970&amp;rsquo;s&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;&amp;ndash; &amp;ldquo;&lt;/span&gt;&lt;strong&gt;Monty Python&amp;rsquo;s Flying Circus&lt;/strong&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;&amp;ldquo;. The specialty of Python is that it&amp;rsquo;s really&amp;nbsp;&lt;/span&gt;&lt;strong&gt;easy to learn&lt;/strong&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;strong&gt;use&lt;/strong&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Maintain&lt;/strong&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;, Also it can be used to follow&amp;nbsp;&lt;/span&gt;&lt;strong&gt;both&lt;/strong&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;&amp;nbsp;the&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Procedural approach&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;color:rgba(0, 0, 0, 0.73); font-family:Roboto,Arial,sans-serif; font-size:17px&quot;&gt;and&lt;/span&gt;&lt;strong&gt;&amp;nbsp;Object-Oriented Approach of programming.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Learn more about Python Programming at - &lt;a target=&quot;_blank&quot; rel=&quot;&quot; href=&quot;https://aiforkids.in/class-10/python/&quot;&gt;Start learning Python Programming&lt;/a&gt;&lt;/p&gt;

</description>
<category>Python</category>
<guid isPermaLink="true">https://aiforkids.in/qa/766/what-is-python-class-10?show=767#a767</guid>
<pubDate>Tue, 04 Jan 2022 05:49:09 +0000</pubDate>
</item>
<item>
<title>Can you enumerate and explain the various types of errors that can occur during the execution of a computer program?</title>
<link>https://aiforkids.in/qa/183/enumerate-explain-various-errors-execution-computer-program</link>
<description></description>
<category>Other Programming</category>
<guid isPermaLink="true">https://aiforkids.in/qa/183/enumerate-explain-various-errors-execution-computer-program</guid>
<pubDate>Tue, 31 Aug 2021 08:43:46 +0000</pubDate>
</item>
</channel>
</rss>