<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ganesh Balaraman</title>
    <description>The latest articles on DEV Community by Ganesh Balaraman (@ganesh_balaraman_6edae0d9).</description>
    <link>https://dev.to/ganesh_balaraman_6edae0d9</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1748096%2F170ddadc-68df-46a1-b851-a03384b94e02.png</url>
      <title>DEV Community: Ganesh Balaraman</title>
      <link>https://dev.to/ganesh_balaraman_6edae0d9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ganesh_balaraman_6edae0d9"/>
    <language>en</language>
    <item>
      <title>Task 2 - Constants and variables</title>
      <dc:creator>Ganesh Balaraman</dc:creator>
      <pubDate>Mon, 15 Jul 2024 10:31:47 +0000</pubDate>
      <link>https://dev.to/ganesh_balaraman_6edae0d9/task-2-constants-and-variables-fkn</link>
      <guid>https://dev.to/ganesh_balaraman_6edae0d9/task-2-constants-and-variables-fkn</guid>
      <description>&lt;p&gt;Create a variable named name and assign your name to it. Then print the value of the variable.&lt;/p&gt;

&lt;p&gt;name = "ganesh"&lt;br&gt;
print(name)&lt;/p&gt;

&lt;p&gt;Create a variable age and assign your age to it. Later, reassign the variable with a new value and print the new value.&lt;/p&gt;

&lt;p&gt;age = 36&lt;br&gt;
age = 37&lt;br&gt;
print(age)&lt;/p&gt;

&lt;p&gt;Assign the values 5, 10, and 15 to three variables a, b, and c in a single line. Print their values.&lt;/p&gt;

&lt;p&gt;a , b , c = 5 , 10 , 15&lt;br&gt;
print(a , b , c)&lt;/p&gt;

&lt;p&gt;Swap the values of two variables x and y without using a third variable. Print their values before and after swapping.&lt;/p&gt;

&lt;p&gt;x , y = 1 , 2&lt;br&gt;
print(x , y)&lt;br&gt;
x , y = 2, 1&lt;br&gt;
print(x , y )&lt;/p&gt;

&lt;p&gt;Define constants PI with appropriate values and print them.&lt;/p&gt;

&lt;p&gt;PI = 3.14&lt;br&gt;
print(PI)&lt;/p&gt;

&lt;p&gt;Write a program that calculates the area of a circle using the constant PI and a variable radius. Print the area.&lt;/p&gt;

&lt;p&gt;PI = 3.14&lt;br&gt;
r = 5&lt;br&gt;
a = pi * r * r&lt;br&gt;
print(a)&lt;br&gt;
79.5&lt;/p&gt;

&lt;p&gt;Define constants for the length and width of a rectangle. Calculate and print the area.&lt;br&gt;
Define a constant for π (pi) and a variable for the radius. Calculate and print the circumference of the circle.&lt;/p&gt;

&lt;p&gt;LENGTH = 60&lt;br&gt;
WIDTH = 20&lt;br&gt;
a = LENGTH * WIDTH&lt;br&gt;
print(a)&lt;br&gt;
1200&lt;/p&gt;

&lt;p&gt;PI = 3.14&lt;br&gt;
r = 8&lt;br&gt;
circumference = 2 * pi * r&lt;br&gt;
circumference = 2 * PI * r&lt;br&gt;
print(circumference)&lt;br&gt;
50.24&lt;/p&gt;

</description>
      <category>python</category>
      <category>constants</category>
    </item>
    <item>
      <title>Task 1: print exercises</title>
      <dc:creator>Ganesh Balaraman</dc:creator>
      <pubDate>Sat, 13 Jul 2024 05:14:15 +0000</pubDate>
      <link>https://dev.to/ganesh_balaraman_6edae0d9/task-1-print-exercises-1bdg</link>
      <guid>https://dev.to/ganesh_balaraman_6edae0d9/task-1-print-exercises-1bdg</guid>
      <description>&lt;ol&gt;
&lt;li&gt;How do you print the string “Hello, world!” to the screen?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;print("hello" , "world!")&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How do you print the value of a variable name which is set to “Syed Jafer” or Your name?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;name = "syed Jafer"&lt;br&gt;
print (name)&lt;/p&gt;

&lt;p&gt;How do you print the variables name, age, and city with labels “Name:”, “Age:”, and “City:”?&lt;/p&gt;

&lt;p&gt;print ( "name:" , name , "age:" , age , "city:" , city )&lt;/p&gt;

&lt;p&gt;How do you use an f-string to print name, age, and city in the format “Name: …, Age: …, City: …”?&lt;/p&gt;

&lt;p&gt;print(f" name: {name} , age: {age} , city: {city}")&lt;/p&gt;

&lt;p&gt;How do you concatenate and print the strings greeting (“Hello”) and target (“world”) with a space between them?&lt;/p&gt;

&lt;p&gt;print("hello " + "world")&lt;/p&gt;

&lt;p&gt;How do you print three lines of text with the strings “Line1”, “Line2”, and “Line3” on separate lines?&lt;/p&gt;

&lt;p&gt;print("line1\nline2\nline3")&lt;/p&gt;

&lt;p&gt;How do you print the string He said, "Hello, world!" including the double quotes?&lt;/p&gt;

&lt;p&gt;print (' "hello , world!" ')&lt;/p&gt;

&lt;p&gt;How do you print the string C:\Users\Name without escaping the backslashes?&lt;/p&gt;

&lt;p&gt;print(r"C:\users\name")&lt;/p&gt;

&lt;p&gt;How do you print the result of the expression 5 + 3?&lt;/p&gt;

&lt;p&gt;print (5+3)&lt;/p&gt;

&lt;p&gt;How do you print the strings “Hello” and “world” separated by a hyphen -?&lt;/p&gt;

&lt;p&gt;print("hello" , "world" , sep ="-")&lt;/p&gt;

&lt;p&gt;How do you print the string “Hello” followed by a space, and then print “world!” on the same line?&lt;/p&gt;

&lt;p&gt;print("Hello" + "world!")&lt;/p&gt;

&lt;p&gt;How do you print the value of a boolean variable is_active which is set to True?&lt;/p&gt;

&lt;p&gt;this = True&lt;br&gt;
print(this)&lt;/p&gt;

&lt;p&gt;How do you print the string “Hello ” three times in a row?&lt;/p&gt;

&lt;p&gt;print("hello * 3")&lt;/p&gt;

&lt;p&gt;How do you print the sentence The temperature is 22.5 degrees Celsius. using the variable temperature?&lt;/p&gt;

&lt;p&gt;temperature = 22.5&lt;br&gt;
print("the temperature is " + str(temperature) + " degrees celcius.")&lt;/p&gt;

&lt;p&gt;How do you print name, age, and city using the .format() method in the format “Name: …, Age: …, City: …”?&lt;/p&gt;

&lt;p&gt;print("name: {} , age:{} , city:{}". format(name,age,city))&lt;/p&gt;

</description>
      <category>python</category>
      <category>print</category>
      <category>exercise</category>
    </item>
    <item>
      <title>first day of python</title>
      <dc:creator>Ganesh Balaraman</dc:creator>
      <pubDate>Mon, 08 Jul 2024 14:42:41 +0000</pubDate>
      <link>https://dev.to/ganesh_balaraman_6edae0d9/first-day-of-python-3hm4</link>
      <guid>https://dev.to/ganesh_balaraman_6edae0d9/first-day-of-python-3hm4</guid>
      <description>&lt;p&gt;Am from medical background. totally new for computer programming. knows somethings today from kaniyam.com group, i.e, what is python, its some of applications, and i tried to do print also. it works. lovely.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
