<?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: Kiyanna Gayle</title>
    <description>The latest articles on DEV Community by Kiyanna Gayle (@kgayl008).</description>
    <link>https://dev.to/kgayl008</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%2F1261536%2Fd579a3af-be95-49e8-8606-751768784a2e.png</url>
      <title>DEV Community: Kiyanna Gayle</title>
      <link>https://dev.to/kgayl008</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kgayl008"/>
    <language>en</language>
    <item>
      <title>Python - Variable Names</title>
      <dc:creator>Kiyanna Gayle</dc:creator>
      <pubDate>Sat, 03 Feb 2024 14:44:17 +0000</pubDate>
      <link>https://dev.to/kgayl008/python-variable-names-aj2</link>
      <guid>https://dev.to/kgayl008/python-variable-names-aj2</guid>
      <description>&lt;p&gt;&lt;strong&gt;Variable Names&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MUST&lt;/strong&gt; start with a &lt;em&gt;letter&lt;/em&gt; or the &lt;em&gt;underscore character&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CANNOT&lt;/strong&gt; start with a &lt;em&gt;number&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;can only contain &lt;em&gt;alpha-numeric characters&lt;/em&gt; and &lt;em&gt;underscores&lt;/em&gt; (A-z, 0-9, and_ )&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;case-sensitive&lt;/em&gt; (age, Age and AGE are three different variables)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CANNOT&lt;/strong&gt;  be any of the Python Keywords&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Legal variable names:&lt;/strong&gt;&lt;br&gt;
myvar = "John"&lt;br&gt;
my_var = "John"&lt;br&gt;
_my_var = "John"&lt;br&gt;
myVar = "John"&lt;br&gt;
MYVAR = "John"&lt;br&gt;
myvar2 = "John"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Illegal variable names:&lt;/strong&gt;&lt;br&gt;
2myvar = "John"&lt;br&gt;
my-var = "John"&lt;br&gt;
my var = "John"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Camel Case&lt;/u&gt;&lt;/strong&gt; - each word, except the first, starts with a capital letter:&lt;br&gt;
myVariableName = "John"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Pascal Case&lt;/u&gt;&lt;/strong&gt; - each word starts with a capital letter:&lt;br&gt;
MyVariableName = "John"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Snake Case&lt;/u&gt;&lt;/strong&gt; - each word is separated by an underscore character:&lt;br&gt;
my_variable_name = "John"&lt;/p&gt;

</description>
      <category>python</category>
      <category>variable</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Python Variables</title>
      <dc:creator>Kiyanna Gayle</dc:creator>
      <pubDate>Sat, 03 Feb 2024 14:10:10 +0000</pubDate>
      <link>https://dev.to/kgayl008/python-variables-49j2</link>
      <guid>https://dev.to/kgayl008/python-variables-49j2</guid>
      <description>&lt;p&gt;&lt;strong&gt;Variables&lt;/strong&gt; - &lt;em&gt;containers&lt;/em&gt; for storing data values.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;can be declared either by using single or double quotes.&lt;/li&gt;
&lt;li&gt;care-sensitive&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Creating Variables&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
x = 5&lt;br&gt;
y = "John"&lt;br&gt;
print(x)&lt;br&gt;
print(y)&lt;/p&gt;

&lt;p&gt;Variables do not need to be declared with any particular &lt;em&gt;type&lt;/em&gt;, and can even change type after they have been set.&lt;/p&gt;

&lt;p&gt;x = 4       # x is of type int&lt;br&gt;
x = "Sally" # x is now of type str&lt;br&gt;
print(x)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Casting&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want to specify the data type of a variable, this can be done with casting.&lt;/p&gt;

&lt;p&gt;x = &lt;strong&gt;str&lt;/strong&gt;(3)    # x will be &lt;strong&gt;'3'&lt;/strong&gt;&lt;br&gt;
y = &lt;strong&gt;int&lt;/strong&gt;(3)    # y will be &lt;strong&gt;3&lt;/strong&gt;&lt;br&gt;
z = &lt;strong&gt;float&lt;/strong&gt;(3)  # z will be &lt;strong&gt;3.0&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Get the Type&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can get the data type of a variable with the &lt;strong&gt;type()&lt;/strong&gt; function.&lt;/p&gt;

&lt;p&gt;x = 5&lt;br&gt;
y = "John"&lt;br&gt;
print(type(x))&lt;br&gt;
print(type(y))&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>python</category>
    </item>
    <item>
      <title>Python Comments</title>
      <dc:creator>Kiyanna Gayle</dc:creator>
      <pubDate>Sat, 03 Feb 2024 13:48:04 +0000</pubDate>
      <link>https://dev.to/kgayl008/python-comments-5hdo</link>
      <guid>https://dev.to/kgayl008/python-comments-5hdo</guid>
      <description>&lt;p&gt;Comments can be used to ...&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;explain&lt;/em&gt; Python code&lt;/li&gt;
&lt;li&gt;make code &lt;em&gt;more readable&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;prevent execution&lt;/em&gt; when testing code&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Creating a Comment&lt;/strong&gt;&lt;br&gt;
-starts with "#" &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a Comment in VSCode, the easy way.
On Windows, the shortcut is: CTRL + /
On Mac, the shortcut is: Command + /*&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;#This is a comment&lt;br&gt;
print("Hello, World!")&lt;/p&gt;

&lt;p&gt;Python will ignore string literals that are not assigned to a variable.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;add a multiline string (triple quotes) in your code and place your comment inside it. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;"""&lt;br&gt;
This is a comment&lt;br&gt;
written in&lt;br&gt;
more than just one line&lt;br&gt;
"""&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>python</category>
    </item>
    <item>
      <title>Python Introduction</title>
      <dc:creator>Kiyanna Gayle</dc:creator>
      <pubDate>Sat, 03 Feb 2024 13:31:51 +0000</pubDate>
      <link>https://dev.to/kgayl008/python-introduction-2b4a</link>
      <guid>https://dev.to/kgayl008/python-introduction-2b4a</guid>
      <description>&lt;p&gt;&lt;strong&gt;Python is used for...&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;web development (server-side)&lt;/li&gt;
&lt;li&gt;software development&lt;/li&gt;
&lt;li&gt;mathematics&lt;/li&gt;
&lt;li&gt;system scripting&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What can Python do?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;used on a server to create web applications&lt;/li&gt;
&lt;li&gt;used alongside software to create workflows&lt;/li&gt;
&lt;li&gt;connect to database systems. Also, read and modify files&lt;/li&gt;
&lt;li&gt;used to handle big data and perform complex mathematics&lt;/li&gt;
&lt;li&gt;used for rapid prototyping, or for production-ready software development&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why Python?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)&lt;/li&gt;
&lt;li&gt;simple syntax that allows developers to write programs with fewer than other programming languages.&lt;/li&gt;
&lt;li&gt;run on an &lt;strong&gt;interpreter system&lt;/strong&gt;, meaning that &lt;em&gt;code can be executed as soon as it is written&lt;/em&gt;. Prototyping can be rapid.&lt;/li&gt;
&lt;li&gt;can be treated procedurally, in an object-oriented way, or a functional way.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>python</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
