<?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: Nicole Ramos</title>
    <description>The latest articles on DEV Community by Nicole Ramos (@nickramen).</description>
    <link>https://dev.to/nickramen</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%2F1025063%2Fa03645dc-22d7-4cbd-aae8-75fd073695c5.jpeg</url>
      <title>DEV Community: Nicole Ramos</title>
      <link>https://dev.to/nickramen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nickramen"/>
    <language>en</language>
    <item>
      <title>Python Tutorial (Basic): Data Types</title>
      <dc:creator>Nicole Ramos</dc:creator>
      <pubDate>Sun, 12 Feb 2023 06:34:02 +0000</pubDate>
      <link>https://dev.to/nickramen/python-tutorial-basic-data-types-3205</link>
      <guid>https://dev.to/nickramen/python-tutorial-basic-data-types-3205</guid>
      <description>&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;In Python, data types refer to the type or category of data that a variable or expression represents. Python has several built-in data types, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Integers&lt;/li&gt;
&lt;li&gt;Floats&lt;/li&gt;
&lt;li&gt;Complex&lt;/li&gt;
&lt;li&gt;Strings&lt;/li&gt;
&lt;li&gt;Booleans&lt;/li&gt;
&lt;li&gt;Lists&lt;/li&gt;
&lt;li&gt;Tuples&lt;/li&gt;
&lt;li&gt;Dictionaries&lt;/li&gt;
&lt;li&gt;Sets&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5j3q42wtanh4zh22hj5q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5j3q42wtanh4zh22hj5q.png" alt="Python Banner" width="800" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These data types have different properties and methods that allow you to perform different operation. It's important to choose the appropriate data type for your specific needs, as this can affect the efficiency of your code.&lt;/p&gt;

&lt;p&gt;Let's get started!&lt;/p&gt;

&lt;h3&gt;
  
  
  Integers
&lt;/h3&gt;

&lt;p&gt;Integer data type represents positive or negative whole numbers without decimal points.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;integer1 = 10
integer2 = 85
integer3 = -120
integer4 = -6
integer5 = 0

print(type(integer1))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Floats
&lt;/h3&gt;

&lt;p&gt;Float data type represents real numbers with decimals.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;float1 = 10.23
float2 = 85.87
float3 = -120.61
float4 = -6.98732
float5 = 0.4

print(type(float4))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Complex Numbers
&lt;/h3&gt;

&lt;p&gt;Complex numbers are a type of number that includes a real part and an imaginary part. Complex numbers are commonly used in scientific and engineering calculations.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;complex1 = complex(2, 3j)
complex2 = complex(18, 6j)
complex3 = complex(49, 12j)
complex4 = complex(67, 1j)
complex5 = complex(9, 98j)

print(type(complex1))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Access to the real part and the imaginary part this way:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;data = complex(13.68, 98.74)

print(data)
print('Real part of data:', data.real)
print('Imaginary part of data:', data.imag)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Strings
&lt;/h3&gt;

&lt;p&gt;A string is a sequence of characters. It is a collection of alphabets, words or other characters enclosed with quotes.&lt;/p&gt;

&lt;p&gt;Example with single quotes. ''&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string1 = 'My name is Nicole and I am 22 years old.'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example with double quotes. ""&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string2 = "I am learning the basics of Python with this tutorial."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example with triple quotes using double quotes. """ """&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string3 = """When you use triple quotes you can write in blocks. For example, I can finish my sentence here and
then continue writting some more in a second line and not get any error, which I would get if I was using single
quotes or double quote. When I use the triple quotes I can also use "double" and 'single'quotes without any problem."""
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example with triple quotes using single quotes. ''' '''&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string4 = '''Same as the previous example, I can write blocks with triple quotes using single quotes.
If you try to write multiple lines with the double and single quotes you will be getting an error.
Try it yourself!!!'''

print(type(string2))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Booleans
&lt;/h3&gt;

&lt;p&gt;Data type that represents one of two values: "True" or "False". Booleans are used to express logical values, such as whether a condition is true or false.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x = True
y = False
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Simple as that!&lt;/p&gt;

&lt;h3&gt;
  
  
  Lists
&lt;/h3&gt;

&lt;p&gt;A list is a data structure in Python that is a modifiable. An ordered sequence of elements. Each element or value that is inside of a list is called an item. Just as strings are defined as characters between quotes, lists are defined by having values between square brackets.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list = ["Nicole", "nickramen", True, 22]

print(type(list))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remember that when we count the items of an array, we always start counting from 0. For example, look at the word &lt;strong&gt;Hello&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;H -&amp;gt; 0&lt;/li&gt;
&lt;li&gt;e -&amp;gt; 1&lt;/li&gt;
&lt;li&gt;l -&amp;gt; 2&lt;/li&gt;
&lt;li&gt;l -&amp;gt; 3&lt;/li&gt;
&lt;li&gt;o -&amp;gt; 4&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With that in mind, you can access to an specific item of a list this way:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print(list[2])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Since it is possible to modify the list after it has been created, I'll show how simple it is. You first access to the item you want to change and then assign it the new value. Finally, print the list so you can see the list with the value you changed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list[2] = False
print(list)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Tuples
&lt;/h3&gt;

&lt;p&gt;Tuples are an ordered collection of values or items. It is similar to the lists but, unlike those, tuples cannot be modified once they are created. Tuples are defined by having values between parenthesis.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tuple = ("one", "two", "three", 4, 5)

print(type(tuple))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can access to an specific item of the tuple same way as you do with lists, but if you try to modify it you will get an error like the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;TypeError: 'tuple' object does not support item assignment
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Dictionaries
&lt;/h3&gt;

&lt;p&gt;A dictionary is a data structure that allows you to store and retrieve key-value pairs. They are similar to lists and tuples because they can hold multiple values, but instead of using numeric indices to access elements (like in lists and tuples) dictionaries use keys.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dictionary = {
    'name' : 'Nicole',
    'lastname' : 'Ramos',
    'age' : 22
}

print(type(dictionary))
print(dictionary)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Access to an item in dictionary and modify it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print(dictionary['name'])
print(dictionary['age'])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Adding items to the dictionary:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dictionary['nationality'] = "honduran"
dictionary.update({'student':False, 'profession':'programmer'})
print(dictionary)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Updating items from the dictionary:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dictionary['age'] = 25
dictionary.update({'student':True,'name':'Darcy'})
print(dictionary)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Sets
&lt;/h3&gt;

&lt;p&gt;Sets are very similar to dictionaries. They store unordered collections of data and every item is unique. Items cannot be modified nor accessed by the index. Use sets when you want to store a collection you know you won't need to modify, that way you can optimize your code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sets = {1, 2, 3, 4, 5}

print(type(sets))
print(sets)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's say we have two sets:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;set_a = {1, 2, 3, 4, 5}
set_b = {4, 5, 6, 7, 8}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Union() - creates a new set that contains elements from different sets.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;union_set = set_a.union(set_b)
print(union_set) # prints {1, 2, 3, 4, 5, 6, 7, 8}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Intersection() - creates a new set that contains the elements that are common to both sets.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;intersection_set = set_a.intersection(set_b)
print(intersection_set) # prints {4, 5}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Difference() - creates a new set that contains the elements that are in set_a but not in set_b.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;difference_set = set_a.difference(set_b)
print(difference_set) # prints {1, 2, 3}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Eliminate duplicates from a list&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;names = ['Alice', 'Bob', 'Charlie', 'Alice', 'Dave']
unique_names = set(names)
print(unique_names)  # prints {'Alice', 'Bob', 'Charlie', 'Dave'}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;First of all, congrats for getting all the way to the end! Now you have plenty of knowledge of the data types in Python. If you already know other programming languages, then this was like a review for you, but if it is your first time learning to code, then you can see that it wasn't that complicated. Keep on reviewing data types until you feel comfortable. &lt;/p&gt;

&lt;p&gt;The next thing we will be learning are variables. I will be uploading the post soon.&lt;/p&gt;

&lt;p&gt;Follow for more content like this!!&lt;/p&gt;

</description>
      <category>gratitude</category>
    </item>
    <item>
      <title>Python Tutorial (Basic): Introduction</title>
      <dc:creator>Nicole Ramos</dc:creator>
      <pubDate>Sun, 12 Feb 2023 02:57:31 +0000</pubDate>
      <link>https://dev.to/nickramen/python-tutorial-basic-introduction-481l</link>
      <guid>https://dev.to/nickramen/python-tutorial-basic-introduction-481l</guid>
      <description>&lt;h3&gt;
  
  
  Python?
&lt;/h3&gt;

&lt;p&gt;What is Python? Well, let me explain!!! Python is an excellent language for beginners to learn programming concepts and build their first applications. In this tutorial blog, I will introduce the basics of Python, including data types, variables, conditional, operators, among others, and provide examples to help you apply these concepts to real-world problems.&lt;/p&gt;

&lt;h3&gt;
  
  
  Common uses
&lt;/h3&gt;

&lt;p&gt;Python has become one of the most popular programming languages to go for recently. It can be used by developers, but it's not reduced to only programmers and data scientist. Python can literally help anyone automate tasks, even without heavy knowledge in programming.&lt;/p&gt;

&lt;p&gt;Take a look at some of the uses it has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Web Development&lt;/li&gt;
&lt;li&gt;Data analysis and machine learning&lt;/li&gt;
&lt;li&gt;Artificial Intelligence&lt;/li&gt;
&lt;li&gt;Scientific Computing&lt;/li&gt;
&lt;li&gt;Automation or scripting&lt;/li&gt;
&lt;li&gt;Education&lt;/li&gt;
&lt;li&gt;Gaming&lt;/li&gt;
&lt;li&gt;Software testing and prototyping&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Content:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Data types&lt;/li&gt;
&lt;li&gt;Varibles&lt;/li&gt;
&lt;li&gt;Operators&lt;/li&gt;
&lt;li&gt;Conditionals&lt;/li&gt;
&lt;li&gt;Methods&lt;/li&gt;
&lt;li&gt;Inputs&lt;/li&gt;
&lt;li&gt;Loops&lt;/li&gt;
&lt;li&gt;Functions&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>gratitude</category>
    </item>
  </channel>
</rss>
