<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Syeda Faiqa fiaz on Medium]]></title>
        <description><![CDATA[Stories by Syeda Faiqa fiaz on Medium]]></description>
        <link>https://medium.com/@faiqafiaz1?source=rss-85f22dfd971c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hdfvbnUgE_6yl2aYL0UZRA.jpeg</url>
            <title>Stories by Syeda Faiqa fiaz on Medium</title>
            <link>https://medium.com/@faiqafiaz1?source=rss-85f22dfd971c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 23:33:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@faiqafiaz1/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[5 Tips for Communicating with any Non-technical Stakeholders]]></title>
            <link>https://medium.com/@faiqafiaz1/5-tips-for-communicating-data-insights-to-non-technical-stakeholders-231c7daf531c?source=rss-85f22dfd971c------2</link>
            <guid isPermaLink="false">https://medium.com/p/231c7daf531c</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-communication]]></category>
            <category><![CDATA[technews]]></category>
            <category><![CDATA[technical-analysis]]></category>
            <dc:creator><![CDATA[Syeda Faiqa fiaz]]></dc:creator>
            <pubDate>Fri, 17 Feb 2023 19:11:03 GMT</pubDate>
            <atom:updated>2023-02-18T12:38:52.810Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rnbTasOrmfVmtYAr" /><figcaption>Photo by <a href="https://unsplash.com/@sheraz_official__?utm_source=medium&amp;utm_medium=referral">Ahmed Sheraz</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Data insights have evolved into a crucial tool for making knowledgeable business decisions in today’s data-driven world. Nonetheless, it might be difficult to convey data information to non-technical stakeholders. Non-technical stakeholders might not be as familiar with the tools and techniques used to derive insights from data as data analysts are, and they might not have the same degree of comprehension of the data as data analysts do</p><p>Here are some pointers for explaining data insights to stakeholders that are not technically savvy:</p><h4><strong>Tell a story:</strong></h4><p>Data insights are potent tools for crafting stories. Try to tell a story that links the data to a business opportunity or problem rather than merely giving numbers. This can make the context of the data and its applicability to non-technical stakeholders’ decision-making processes clearer.</p><h4><strong>Simply:</strong></h4><p>It’s crucial to make your message concise and straightforward. Avoid employing acronyms and complicated statistical formulas that non-technical stakeholders could find difficult to understand. Instead, describe your findings in basic, simple words.</p><h4><strong>Understand your audience:</strong></h4><p>Understanding your audience is one of the most crucial aspects of delivering statistical information to non-technical stakeholders. It is crucial to adjust your communication approach to your audience’s level of comprehension because non-technical stakeholders might not be aware with the technical vocabulary used in data analysis.</p><h4><strong>Use a visual:</strong></h4><p>For non-technical stakeholders, visuals like charts, graphs, and tables are a powerful means of communicating data. Visuals may speed up and effectively communicate complicated information, making it simpler for non-technical stakeholders to comprehend and remember.</p><h4><strong>Be available to answer questions:</strong></h4><p>Non-technical stakeholders might need your data to be clarified or have queries about it. Ensure that you are accessible to respond to their inquiries and offer more details as necessary. This can increase trust in the data statistics you have given.</p><p>In conclusion, sharing data insights with stakeholders who are not technical is a crucial step in the data analysis process. You can effectively share data insights with non-technical stakeholders to help them make informed decisions by matching your communication style to your audience, keeping your message simple, using visuals, telling a story, providing context and recommendations, and being available to answer questions. creation within your company.</p><p><em>Follow me for more interesting topics.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=231c7daf531c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Battle: OpenAI’s ChatGPT vs Apple’s SIRI]]></title>
            <link>https://medium.com/@faiqafiaz1/battle-openais-chatgpt-vs-apple-s-siri-b038574e1877?source=rss-85f22dfd971c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b038574e1877</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[siri]]></category>
            <category><![CDATA[apple-siri]]></category>
            <category><![CDATA[battle]]></category>
            <dc:creator><![CDATA[Syeda Faiqa fiaz]]></dc:creator>
            <pubDate>Sun, 12 Feb 2023 17:55:41 GMT</pubDate>
            <atom:updated>2023-02-12T17:55:41.061Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OjChayYdwr1n85RD" /><figcaption>Photo by <a href="https://unsplash.com/@m4quuv?utm_source=medium&amp;utm_medium=referral">Piotr Makowski</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>OpenAI’s ChatGPT and Apple’s Siri are two of the most popular virtual assistants in the market today. The choice between OpenAI’s ChatGPT and Apple’s Siri is a matter of personal preference and specific requirements. Both virtual assistants have their unique features, strengths, and weaknesses, and the decision on which one is better depends on the needs of the user.</p><p>In this article, we will compare the two and see what sets them apart from each other.</p><p><strong>OpenAI’s ChatGPT</strong> is an advanced language model that was trained by OpenAI using large amounts of text data from the internet. This training has allowed ChatGPT to understand natural language and respond to a wide range of questions and requests in an accurate and human-like manner. It is designed to work as a conversational AI.</p><p><strong>Apple’s Siri </strong>is included into all of Apple’s iOS products, including iPhones, iPads, and Macs. Since its debut in 2011, Siri has grown to be an essential component of the Apple ecosystem. Users can interact with their devices through voice commands thanks to voice recognition technologies. Siri is capable of a wide range of functions, including setting reminders, sending text messages, conducting internet searches, and placing phone calls.</p><p>The<strong> level of customization</strong> is one of the most significant differences between ChatGPT and Siri. ChatGPT is a highly adaptable tool that can be tailored to an individual’s or organization’s specific requirements. This makes it an excellent choice for businesses and organisations looking to create customised virtual assistants for their customers or employees. Siri, on the other hand, is intended to work out-of-the-box, with few customization options. This makes it a good option for people looking for a simple and easy-to-use virtual assistant.</p><p>The <strong>level of integration</strong> is another distinction between ChatGPT and Siri. ChatGPT is a stand-alone application that can be integrated into other applications and services through the use of APIs. This means it can be used to create personalised virtual assistants that can be integrated into websites, mobile apps, and other platforms. Siri, on the other hand, is deeply embedded in the Apple ecosystem and can only be accessed through Apple devices.</p><p>Both ChatGPT and Siri have their advantages and disadvantages in terms of accuracy. Thanks to extensive training on text data, ChatGPT’s responses are quite precise. However, it occasionally has trouble comprehending the context of a conversation, which can lead to errors. While Siri is renowned for its accurate voice recognition, it occasionally has trouble comprehending complex requests or questions.</p><p>Both Siri and ChatGPT are very functional in<strong> terms of their capabilities</strong>. ChatGPT can reply to a variety of inquiries and requests, from giving information on a subject to resolving challenging issues. Siri, on the other hand, has fewer features and concentrates on carrying out simple tasks like setting reminders, placing calls, and sending texts.</p><p>Last but not least, ChatGPT and Siri take distinct approaches to<strong> privacy</strong>. OpenAI takes privacy very seriously and is open about its data collecting and usage practises. However, Siri gathers a lot of data from its users, which may cause some people to worry about their privacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3apGgRLZ6MHPaGE-" /><figcaption>Photo by <a href="https://unsplash.com/@simplicity?utm_source=medium&amp;utm_medium=referral">Marija Zaric</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>In conclusion, ChatGPT from OpenAI and Siri from Apple are both strong virtual assistants with distinctive features and functionalities. Siri is a straightforward and user-friendly virtual assistant that is incorporated into the Apple ecosystem, while ChatGPT is a very versatile and customizable platform that is great for corporations and organisations wishing to build custom virtual assistants. In the end, the user’s unique demands and requirements will determine which option they select.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b038574e1877" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How important is Data Science to Data Analysts?]]></title>
            <link>https://medium.com/@faiqafiaz1/how-important-is-data-science-to-data-analysts-8c094c8718b9?source=rss-85f22dfd971c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c094c8718b9</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analyst]]></category>
            <category><![CDATA[data-science-vs-data-anal]]></category>
            <dc:creator><![CDATA[Syeda Faiqa fiaz]]></dc:creator>
            <pubDate>Mon, 06 Feb 2023 15:50:09 GMT</pubDate>
            <atom:updated>2023-02-09T16:29:36.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1CwymgEEz_3tHKZw" /><figcaption>Photo by <a href="https://unsplash.com/@goumbik?utm_source=medium&amp;utm_medium=referral">Lukas Blazek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Data science and data analysis are two closely related fields that play a vital role in today’s data-driven world.</p><p>It plays an important role in the field of data analysis as it provides a complete set of tools and methodologies for organizing, analyzing, and interpreting large and complex data sets. In this article, we explore why data science is so important to data analysts and how data analysis can improve your skills and knowledge.</p><h4><strong>Main Difference:</strong></h4><p>Data analysts collect, clean, transform, and model data to support decision-making and drive business value. They use statistical techniques and tools to analyze data and generate insights that can be used to inform business decisions. Data science, on the other hand, focuses on developing and applying advanced techniques and algorithms to uncover patterns, relationships, and insights in data that can help drive business value. By incorporating data science into their work, data analysts can enhance their analysis and decision-making capabilities, making them more effective and efficient in their work.</p><h4>How Data Science helps Data Analysts:</h4><p>One of the key advantages of data science is its ability to handle and analyze large and complex data sets. In the past, data analysts had to rely on simple statistical techniques and tools to analyze data. However, with the growth of big data, it has become increasingly difficult to analyze data using traditional methods. Data science provides a comprehensive set of tools and algorithms that can handle large and complex data sets, enabling data analysts to analyze data more effectively and efficiently.</p><h4>Through Data Visualization:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hBPbQNSPSrkignY7" /><figcaption>Photo by <a href="https://unsplash.com/@olloweb?utm_source=medium&amp;utm_medium=referral">Agence Olloweb</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Data analysts often need to communicate their findings and insights to stakeholders, who may not have a technical background. Data visualization is a powerful tool that helps data analysts to communicate their insights clearly and effectively. By using data visualization, data analysts can create meaningful and compelling visual representations of data that are easy for stakeholders to understand.</p><h4>Through Machine Learning:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RTlMzbhYSph21jfU" /><figcaption>Photo by <a href="https://unsplash.com/@hiteshchoudhary?utm_source=medium&amp;utm_medium=referral">Hitesh Choudhary</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Data science also includes machine learning, which is a set of algorithms and techniques that enable computers to learn from data without being explicitly programmed. Machine learning algorithms can classify, cluster, and make predictions based on data. Data analysts can use machine learning algorithms to uncover patterns and relationships in data that would be difficult or impossible to identify using traditional statistical methods.</p><p>In addition to machine learning, data science also includes data engineering, which involves the development and implementation of infrastructure for storing, processing, and accessing large amounts of data. Data engineers play a crucial role in ensuring that data is organized, clean, and transformed so that it can be analyzed effectively. By incorporating data engineering skills, data analysts can ensure that data is prepared and organized in a way that enables effective analysis and decision-making.</p><blockquote>Finally, data science provides a comprehensive set of methodologies and best practices for organizing, analyzing, and interpreting data. Data analysts can use these methodologies to ensure that their analysis is robust, reliable, and consistent. By incorporating data science methodologies into their work, data analysts can ensure that their analysis is informed by best practices and that their insights are reliable and trustworthy.</blockquote><h4><strong>Conclusion:</strong></h4><p><em>Data science is an important component of data analysis. By incorporating data science into their work, data analysts can enhance their analytical and decision-making capabilities to make their work more efficient and effective. Data science provides a complete set of tools, methods, and methodologies for organizing, analyzing, and interpreting large and complex data sets, enabling data analysts to extract insights and insights from data that can add business value.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c094c8718b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Branches of Database Management OLAP vs OLTP]]></title>
            <link>https://medium.com/@faiqafiaz1/branches-of-database-management-olap-vs-oltp-84b5337601ec?source=rss-85f22dfd971c------2</link>
            <guid isPermaLink="false">https://medium.com/p/84b5337601ec</guid>
            <category><![CDATA[olap]]></category>
            <category><![CDATA[oltp-vs-olap]]></category>
            <dc:creator><![CDATA[Syeda Faiqa fiaz]]></dc:creator>
            <pubDate>Sat, 04 Feb 2023 19:20:38 GMT</pubDate>
            <atom:updated>2023-02-04T19:20:38.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LSOc8awAx-ApTW9_" /><figcaption>Photo by <a href="https://unsplash.com/@writecodenow?utm_source=medium&amp;utm_medium=referral">Boitumelo Phetla</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this article, we will discuss the branches of database management that help to store, manage and analyze a large amount of data.</p><p>OLAP and OLTP are two branches of Database Management.</p><p>OLAP stands for Online Analytical Processing which is designed to support while OLTP stands for Online Transaction Processing to manage a large number of transactions.</p><h4><strong>Characteristics of OLAP</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z33_Lukz8Qly95LP" /><figcaption>Photo by <a href="https://unsplash.com/@mjessier?utm_source=medium&amp;utm_medium=referral">Myriam Jessier</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote><strong>Focus</strong></blockquote><p><em>Analyzing large amounts of data for any business problem.</em></p><blockquote><strong>Data</strong></blockquote><p><em>Historical, summarized Data. It uses complex data to support multidimensional analysis.</em></p><blockquote><strong>Support</strong></blockquote><p><em>It supports data slicing, dicing, and multidimensional analysis.</em></p><blockquote><strong>Speed:</strong></blockquote><p><em>Depends on dataset</em></p><blockquote><strong>Space:</strong></blockquote><p><em>It uses large space due to the historical database</em></p><blockquote><strong>Design</strong></blockquote><p><em>It is Subject oriented.</em></p><h4>Characteristics of OLTP:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oYqNFtV50fFmfhxI" /><figcaption>Photo by <a href="https://unsplash.com/@dafidvor?utm_source=medium&amp;utm_medium=referral">David Dvořáček</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote><strong>Focus</strong></blockquote><p><em>Inserting, updating, and retrieving transactional data.</em></p><blockquote><strong>Data</strong></blockquote><p><em>Flat, simple data structure. Normalized database design to minimize data redundancy and ensure data integrity.</em></p><blockquote><strong>Support</strong></blockquote><p><em>Short and straightforward transaction and supports ACID (Atomicity, Consistency, Isolation, Durability) properties</em></p><blockquote><strong>Speed</strong></blockquote><p><em>Its speed is faster than OLAP.</em></p><blockquote><strong>Space</strong></blockquote><p><em>It takes less space because it is based on current data.</em></p><blockquote><strong>Design</strong></blockquote><p><em>It is Application Oriented.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84b5337601ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Unseen SQL Commands]]></title>
            <link>https://medium.com/@faiqafiaz1/4-unseen-sql-command-types-d1f6209cea1b?source=rss-85f22dfd971c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1f6209cea1b</guid>
            <category><![CDATA[sql-command]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[trending-topic]]></category>
            <category><![CDATA[sql-database]]></category>
            <dc:creator><![CDATA[Syeda Faiqa fiaz]]></dc:creator>
            <pubDate>Thu, 02 Feb 2023 15:11:49 GMT</pubDate>
            <atom:updated>2023-02-12T19:03:00.936Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*grnDVUoCIj5LHaHw" /><figcaption>Photo by <a href="https://unsplash.com/@campaign_creators?utm_source=medium&amp;utm_medium=referral">Campaign Creators</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this article we will discuss about 4 predefined SQL commands in detailed with syntax.</p><p>There are 4 different commands in SQL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*aLNKS9ZuVUrGo9MybNC58A.jpeg" /><figcaption>Made on Canva</figcaption></figure><h4><strong>DDL (Data Definition Language):</strong></h4><p>It deals with schema description by using create, modified the structure of objects in database.</p><p><strong>5 Common DDL commands:</strong></p><blockquote><strong>Create:</strong></blockquote><p><em>Create Database, tables, schemas</em></p><p><strong>Syntax:</strong></p><pre>-- Create database<br>CREATE DATABASE my_database;<br><br>-- Use database<br>USE my_database;<br><br>-- Create table<br>CREATE TABLE employees (<br>  id INT PRIMARY KEY,<br>  name VARCHAR(50) NOT NULL,<br>  age INT NOT NULL,<br>  department VARCHAR(50) NOT NULL<br>);<br><br>-- Create stored procedure<br>DELIMITER $$<br>CREATE PROCEDURE add_employee (IN emp_id INT, IN emp_name VARCHAR(50), IN emp_age INT, IN emp_dept VARCHAR(50))<br>BEGIN<br>  INSERT INTO employees (id, name, age, department)<br>  VALUES (emp_id, emp_name, emp_age, emp_dept);<br>END $$<br>DELIMITER ;</pre><blockquote><strong>Insert:</strong></blockquote><p><em>Insert data into the table. We can insert data in one row or multiple rows at a time.</em></p><p><strong>Syntax:</strong></p><pre>INSERT INTO table_name (column1, column2, column3, ...)<br>VALUES (value1, value2, value3, ...);</pre><blockquote><strong>Drop:</strong></blockquote><p><em>Drop scheme or table.</em></p><p><strong>Syntax:</strong></p><pre>--Drop schema<br>DROP SCHEMA scheema_name;<br>--Drop table<br>DROP TABLE table_name;</pre><blockquote><strong>Delete:</strong></blockquote><p><em>It is different from a drop. Drop is used to deleting schema or table but delete is used to delete rows from the table.</em></p><p><strong>Syntax:</strong></p><pre>DELETE FROM table_name WHERE some_column = some_value;</pre><blockquote><strong>Update:</strong></blockquote><p><em>To update data in the table means delete any row, changing the data in any column etc.</em></p><p><strong>Syntax:</strong></p><pre>UPDATE table_name<br>SET column1 = value1, column2 = value2, ...<br>WHERE condition;</pre><p>Other commands in DDL are Merge, Rename, Truncate, and Alter.</p><h4><strong>DML (Data Manipulate Language):</strong></h4><p>Manage schema objects in the Database and manipulate them rather than create or modify them.</p><p><strong>5 Common DML commands:</strong></p><blockquote><strong>Select:</strong></blockquote><p><em>To select specific data, columns or rows from the database or from single table.</em></p><p><strong>Syntax:</strong></p><pre>SELECT column1, column2, ...<br>FROM table_name;</pre><blockquote><strong>Insert:</strong></blockquote><p><em>Insert data into table. We can insert data in one row or multiple rows at a time.</em></p><p><strong>Syntax:</strong></p><pre>INSERT INTO table_name (column1, column2, column3, ...)<br>VALUES (value1, value2, value3, ...);</pre><blockquote><strong>Delete:</strong></blockquote><p><em>It is different from drop. Drop is used to delete schema or table but delete is used to delete rows from the table.</em></p><p><strong>Syntax:</strong></p><pre>DELETE FROM table_name WHERE some_column = some_value;</pre><blockquote><strong>Merge:</strong></blockquote><p><em>To merge two different tables into one using some conditions.</em></p><p><strong>Syntax:</strong></p><pre>MERGE target_table USING source_table  <br>ON merge_condition  <br>WHEN MATCHED  <br>    THEN update_statement  <br>WHEN NOT MATCHED  <br>    THEN insert_statement  <br>WHEN NOT MATCHED BY SOURCE  <br>    THEN DELETE;  </pre><blockquote><strong>Call:</strong></blockquote><p><em>To execute the procedures we used call.</em></p><p><strong>Syntax:</strong></p><pre>mysql&gt; SET @increment = 10;<br>mysql&gt; CALL p(@version, @increment);<br>mysql&gt; SELECT @version, @increment;DQL (Data Query Language):</pre><h4><strong>DQL (Data Query Language)</strong></h4><p>Few people know about DQL commands in SQL. It is used to retrieve useful information from data using different operations like Select, from, Group by etc.</p><p><strong>5 Common DQL commands:</strong></p><blockquote><strong>Select:</strong></blockquote><p><em>To select specific data, columns, or rows from the database or from a single table.</em></p><p><strong>Syntax:</strong></p><pre>SELECT column1, column2, ...<br>FROM table_name;</pre><blockquote><strong>From</strong></blockquote><p><em>From is used to select the table from the database.</em></p><p><strong>Syntax:</strong></p><pre>SELECT column1, column2, ...<br>FROM table_name;</pre><blockquote><strong>Having:</strong></blockquote><p><em>To give a specific condition while using where clause with group by.</em></p><p><strong>Syntax:</strong></p><pre>SELECT column_name(s)<br>FROM table_name<br>WHERE condition<br>GROUP BY column_name(s)<br>HAVING condition<br>ORDER BY column_name(s);</pre><blockquote><strong>Where:</strong></blockquote><p><em>Filter the data. It is used to retrieve specific data according to condition.</em></p><p><strong>Syntax:</strong></p><pre>SELECT column1, column2, ...<br>FROM table_name<br>WHERE condition;</pre><blockquote><strong>Group by:</strong></blockquote><p><em>Summary of rows. to find minimum, maximum, sum of data.</em></p><p><strong>Syntax:</strong></p><pre>SELECT column_name(s)<br>FROM table_name<br>WHERE condition<br>GROUP BY column_name(s)<br>ORDER BY column_name(s);</pre><p>Other commands in DQL are Order by, Limit etc.</p><h4><strong>DCL (Data Control Language):</strong></h4><p>DCL is used to manage security pf database.</p><p><strong>5 Common DCL commands:</strong></p><blockquote><strong>Grant:</strong></blockquote><p><em>Give access for any action</em></p><p><strong>Syntax:</strong></p><pre>GRANT privilege_name<br>ON object_name<br>TO {user_name |PUBLIC |role_name}<br>[WITH GRANT OPTION];</pre><blockquote><strong>Revoke:</strong></blockquote><p><em>Rights for database objects.</em></p><p><strong>Syntax:</strong></p><pre>REVOKE privilege_name<br>ON object_name<br>FROM {user_name |PUBLIC |role_name}</pre><blockquote><strong>Create User:</strong></blockquote><p><em>Create specific users to access the data.</em></p><p><strong>Syntax:</strong></p><pre>CREATE USER username IDENTIFIED BY password <br>IDENTIFIED WITH auth_plugin</pre><blockquote><strong>Drop User:</strong></blockquote><p><em>Drop users so that they cannot access the database more.</em></p><p><strong>Syntax:</strong></p><pre>DROP USER user [, user] ...</pre><blockquote><strong>Create Role</strong></blockquote><p><em>Create authority for users</em></p><p><strong>Syntax:</strong></p><pre>CREATE ROLE [IF NOT EXISTS] desiredname</pre><p><strong><em>Follow for more topics.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1f6209cea1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Types of Parallelism & Distributed Computing, Which one is Better]]></title>
            <link>https://medium.com/@faiqafiaz1/5-types-of-parallelism-distributed-computing-which-one-is-better-36899bb66fa3?source=rss-85f22dfd971c------2</link>
            <guid isPermaLink="false">https://medium.com/p/36899bb66fa3</guid>
            <category><![CDATA[which-is-better]]></category>
            <category><![CDATA[distributedcomputingtypes]]></category>
            <category><![CDATA[pc-vs-dc]]></category>
            <category><![CDATA[parallelism]]></category>
            <category><![CDATA[pdc-types]]></category>
            <dc:creator><![CDATA[Syeda Faiqa fiaz]]></dc:creator>
            <pubDate>Wed, 01 Feb 2023 18:12:37 GMT</pubDate>
            <atom:updated>2023-02-12T19:01:30.567Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fRwHwXTKw5xEalpc" /><figcaption>Photo by <a href="https://unsplash.com/@chrisliverani?utm_source=medium&amp;utm_medium=referral">Chris Liverani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this story, we will discuss the different types of Parallelism and Distributed Computing and in last we will discuss which computing is better, Parallel Computing or Distributed Computing.</p><blockquote>In previous article, we already discussed about Parallel and distributed Computing and their differences. You can revise it by clicking <a href="https://medium.com/@faiqafiaz1/4-main-difference-b-w-parallel-computing-distributed-computing-c64b42149197">here</a>.</blockquote><h3><strong>Types of Parallelism:</strong></h3><h4><strong>Data Parallelism:</strong></h4><p>Processing the large dataset into chunks of small datasets at the same time from the sender to the receiver / one processor to another processor is called Data Parallelism.</p><p><em>i.e. Training of any deep learning model on more than one GPUs</em></p><h4>Task Parallelism:</h4><p>In task-level parallelism, a complex and large business problem is divided into small tasks and processes on different processors at the same time.</p><p><em>i.e. On a computer cluster, run multiple tasks simultaneously</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*qEL0Fn2yBbmtExUR7mMX7w.png" /></figure><h4>Functional Parallelism:</h4><p>Divide computational problems, into smaller functions and Running in a parallel computing environment is known as functional Parallelism. It is also called Divide-and-Conquer.</p><p><em>i.e. Simultaneous execution of multiple queries in the same database but using multiple processors</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*VVEDVOSPo2ienXHmf-znWg.png" /></figure><h4>Instruction-level Parallelism:</h4><p>It is working within the processor to execute multiple instructions simultaneously.</p><p><em>i.e. Execution of multiple Arithmetic operations on a modern CPU.</em></p><h4>Bit-level Parallelism:</h4><p>Instead of executing one bit at a time, in Bit-level parallelism multiples bits execute at a time for faster processing and increased performance.</p><p><em>i.e. Consider a computer that can process 8 bits of data in parallel. If the instruction set architecture supports bit-level parallelism, the processor can perform 8 separate arithmetic operations in parallel on 8-bit data values.</em></p><h3>Types of Distributed Computing:</h3><h4><strong>Peer-to-Peer (P2P) Distributed Computing:</strong></h4><p>It is a distributed system where each node acts as a client and server.</p><p><em>i.e. </em><strong><em>BitTorrent </em></strong><em>(file sharing platform)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NpeYCCyfQFHIk0Tv.png" /><figcaption>BitTorrent Logo</figcaption></figure><h4><strong>Grid Computing:</strong></h4><p>A distributed computing system in which resources are shared among multiple organizations is known as Grid Computing.</p><p><em>i.e. The Large Hadron Collider project, where data is analyzed and processed by grid computing resources from multiple universities and research institutions.</em></p><h4><strong>Cluster Computing:</strong></h4><p>Working together in a single network for high-performance computing tasks is called Cluster Computing.</p><p><em>i.e. High-performance computing systems used in scientific research, weather forecasting, and oil and gas exploration.</em></p><h4><strong>Client-Server Distributed Computing:</strong></h4><p>A centralized system in which client nodes request services or resources from server nodes.</p><p><em>i.e. A typical web server-client relationship, where the client (web browser) requests resources from a server (website).</em></p><h4><strong>Edge Computing:</strong></h4><p>Decentralized computing architecture where data is processed at the edge of the network, closer to the source of data, rather than in a centralized data center.</p><p><em>i.e. Internet of Things (IoT) devices, such as smart home devices, that collect and process data locally rather than sending it to a central server for processing.</em></p><h3>Which one is better Parallel Computing or Distributed Computing</h3><p>Both parallel computing and distributed computing have their own advantages and disadvantages.</p><p>Parallel computing refers to using multiple processors within a single system to perform a task faster. This can be achieved through hardware parallelism, such as using multiple cores in a CPU, or software parallelism, such as using threads. <strong>Parallel computing is well-suited for high-performance computing tasks that can be broken down into smaller, independent parts that can be executed simultaneously.</strong></p><p>Distributed computing, on the other hand, refers to a system of interconnected computers that work together to perform a task. This can be done through a centralized or decentralized architecture and can provide scalability and availability benefits by spreading computing resources across multiple systems.<strong> Distributed computing is well-suited for tasks that require large amounts of computing resources or that need to be executed across multiple locations.</strong></p><p>In conclusion, the choice between parallel computing and distributed computing will depend on the specific requirements of the task at hand, such as performance, scalability, and data distribution. <strong>Both approaches have their own strengths and weaknesses, and choosing the right one will require careful consideration of the specific use case and requirements.</strong></p><p><em>Comment, If you want more stories related to Parallel Computing and Distributed Computing. Follow for more interesting topics.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36899bb66fa3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Main Differences b/w Parallel Computing & Distributed Computing]]></title>
            <link>https://medium.com/@faiqafiaz1/4-main-difference-b-w-parallel-computing-distributed-computing-c64b42149197?source=rss-85f22dfd971c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c64b42149197</guid>
            <category><![CDATA[trending]]></category>
            <category><![CDATA[pda]]></category>
            <category><![CDATA[parallel-computing]]></category>
            <category><![CDATA[distributed-computing]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Syeda Faiqa fiaz]]></dc:creator>
            <pubDate>Mon, 30 Jan 2023 14:28:16 GMT</pubDate>
            <atom:updated>2023-02-12T18:58:23.672Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*haKXJSFYG37OO8K_0DG1Pg.png" /><figcaption>Parallel Computing vs Distributed Computing</figcaption></figure><p><strong>Parallel Computing:</strong></p><p>Transfer of Data at the same time for more than one processor. Process large data with multiple processors at the same time to save time and provide concurrency.</p><p><strong>Distributed Computing:</strong></p><p>Solve a single large and complex problem by using multiple computers or a network of computers. The results of each task are then combined to produce a final solution.</p><p><strong><em>Example:</em></strong></p><p>Multi-Core Processor is the best example of Parallel Computing.</p><p>Browsing or searching on the internet is an example of Distributed Computing.</p><h4>Difference b/w Parallel Computing &amp; Distributed Computing</h4><ol><li><strong>Scale:</strong></li></ol><p>In <em>Parallel Computing</em>, multiple processors is used with a single machine or device while in <em>Distributed Computing</em>, multiple devices are connected all over the network.</p><p><strong>2. Resource Sharing:</strong></p><p>Resources are shared within the single machine in <em>Parallel Computing</em> but in <em>Distributed Computing</em> it is shared all over the network.</p><p><strong>3. Synchronization:</strong></p><p>Due to the proximity of processors, synchronization is easier in <em>Parallel Computing</em> while its is complex because of network latency in <em>Distributed Computing.</em></p><p><strong>4. Failure Handling:</strong></p><p>If one processor fails, the other will work accordingly in <em>Parallel Computing</em> but in <em>Distributed Computing</em> if one node fails it will disturb the whole network and the whole network will fail.</p><p><strong><em>Note: The difference between both varies according to the condition.</em></strong></p><p>Comment, If you want more stories related to Parallel Computing and Distributed Computing. Follow for more interesting topics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c64b42149197" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Magical SQL Operators]]></title>
            <link>https://medium.com/@faiqafiaz1/4-useful-sql-operators-337d389bbe88?source=rss-85f22dfd971c------2</link>
            <guid isPermaLink="false">https://medium.com/p/337d389bbe88</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[or]]></category>
            <category><![CDATA[operator-sql]]></category>
            <category><![CDATA[in]]></category>
            <category><![CDATA[and]]></category>
            <dc:creator><![CDATA[Syeda Faiqa fiaz]]></dc:creator>
            <pubDate>Sun, 29 Jan 2023 14:37:31 GMT</pubDate>
            <atom:updated>2023-02-12T18:56:54.488Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r5WLAeTcE8prw34d" /><figcaption>Photo by <a href="https://unsplash.com/@rubaitulazad?utm_source=medium&amp;utm_medium=referral">Rubaitul Azad</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this article, 4 operators of SQL that are used to manipulate data in a database will be discussed.</p><p>Firstly, new table “<strong><em>customers</em></strong>” is created in the Database of “<strong><em>business” </em></strong>is made in MYSQL workbench.</p><p><strong><em>Customer Table:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*GvHs1mXUWTXfFPV7lFCL7Q.png" /><figcaption>Customers Table</figcaption></figure><p>This table is used for this article.</p><h4><strong>AND Operator:</strong></h4><p>AND operator is used to return the rows which meet our condition. Simply, it is used to extract specified data from the table using the <em>WHERE clause.</em></p><p>In AND operator every condition must be true.</p><p><strong><em>Syntax:</em></strong></p><pre>SELECT column1, column2, column3<br>FROM table_name<br>WHERE column1 = &#39;value1&#39; AND column2 = &#39;value2&#39;;</pre><p><strong><em>Example:</em></strong></p><p>Let&#39;s suppose, the name and id of particular persons who ordered greater than 20 from city Multan is needed from “Customers” Table.</p><pre>SELECT Id, name, city, total_orders <br>FROM customers <br>WHERE city = &#39;Multan&#39; AND total_orders &gt; 20;</pre><p>It will return:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*FR39Sx1N2vEwBIb0RjdiMg.png" /><figcaption>Output of AND operator</figcaption></figure><p>If we have more conditions we can use AND operator more than 1 time.</p><h4>OR Operator:</h4><p>It is used to filter records having more than 1 condition. At least one condition must be true. Simply, it is used to extract data that matches at least one condition from the table using <em>WHERE clause.</em></p><p><strong><em>Syntax:</em></strong></p><pre>SELECT column1, column2, ...<br>FROM table_name<br>WHERE condition1 OR condition2 OR ...;</pre><p><strong><em>Example:</em></strong></p><p>The manager wants to see the data of customer that are either from Lahore or Karachi.</p><pre>SELECT *<br>FROM customers <br>WHERE city = &#39;Lahore&#39; OR city = &#39;Karachi&#39;;</pre><p>The output will:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*mjxzj0NkwQR2tf4PD4kwUQ.png" /><figcaption>Output of OR operator</figcaption></figure><p>Both conditions are specified so that’s why it shows the data for both cities. If Karachi will not present in the table then only Lahore’s data will show.</p><h4>IN Operator:</h4><p>The IN operator is used to determine if a specified value in input matches with any value in a table using <em>WHERE clause. </em>It returns true if a match is found and false if not.</p><p><strong><em>Syntax:</em></strong></p><pre>SELECT column1, column2, ...<br>FROM table_name<br>WHERE column_name IN(value1,value2,..,valuen);</pre><p><strong><em>Example:</em></strong></p><p>Managers wants to see the total orders from Multan and Okara.</p><pre>SELECT *<br>FROM customers<br>WHERE city IN (&#39;Multan&#39;, &#39;Okara&#39;);</pre><p>The output will:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*giuEDQ6yfWJ0WVLY7N-8Uw.png" /><figcaption>Output of IN operator</figcaption></figure><p>There are only 2 records from Multan and Okara and the total orders are 30 and 10 respectively.</p><h4>BETWEEN Operator:</h4><p>It is used to extract data within the specified range using <em>WHERE clause.</em> Value can be anything like a number, date etc..</p><p><strong><em>Syntax:</em></strong></p><pre>SELECT column1, column2,..<br>FROM table_name<br>WHERE column_name BETWEEN value1 AND value2;</pre><p><strong><em>Example:</em></strong></p><p>Data from id number 3 to 6 is needed.</p><pre>SELECT * FROM customers<br>WHERE id BETWEEN &#39;3&#39; AND &#39;6&#39;;</pre><p>The output will be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*UF0MSwrOmxuQFezHxW45rw.png" /><figcaption>Output of BETWEEN operator</figcaption></figure><p>It shows the data from id 3 to 6.</p><p><em>Thanks for reading. Follow for more Lectures regarding to SQL.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=337d389bbe88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Momentousness of Machine Learning]]></title>
            <link>https://medium.com/@faiqafiaz1/momentousness-of-machine-learning-f21784f519f3?source=rss-85f22dfd971c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f21784f519f3</guid>
            <category><![CDATA[ml-in-finance]]></category>
            <category><![CDATA[momentousness]]></category>
            <category><![CDATA[ml-in-healthcare]]></category>
            <category><![CDATA[momentousness-of-ml]]></category>
            <category><![CDATA[mls]]></category>
            <dc:creator><![CDATA[Syeda Faiqa fiaz]]></dc:creator>
            <pubDate>Sat, 28 Jan 2023 14:50:36 GMT</pubDate>
            <atom:updated>2023-02-12T18:54:38.285Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-f1S1-ybUS-QVaH2" /><figcaption>Photo by <a href="https://unsplash.com/@hiteshchoudhary?utm_source=medium&amp;utm_medium=referral">Hitesh Choudhary</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this article, we will discuss Machine Learning and it’s important in the future.</p><h4><strong>What is Machine Learning:</strong></h4><p>In simple, it is a branch of deep learning used for classifications, predictions, and decision-making. It is divided in 3 types <strong><em>Supervised learning</em></strong> (making predictions on new data), <strong><em>Unsupervised Learning </em></strong>(training on unlabeled data for hidden patterns), and <strong><em>Reinforcement Learning </em></strong>(Learning from mistakes).</p><h4><strong>Momentousness of ML:</strong></h4><p><strong>Healthcare:</strong></p><p>ML can be used to analyze medical data and help doctors make more accurate diagnoses, identify potential drug interactions, and predict disease outbreaks. It can also assist in reducing costs, improving patient outcomes, and increasing access to care.</p><p>However, it is important to note that the use of machine learning in healthcare is still in its early stages and further research and development is needed to fully realize its potential.</p><p><strong>Transportation:</strong></p><p>ML can be used to improve traffic flow, optimize delivery routes, and develop autonomous vehicles. For example, it can be used to improve the efficiency of transportation networks by analyzing traffic patterns and optimizing routes, to increase the safety of autonomous vehicles by allowing them to learn from their surroundings and make decisions based on real-time data, and to develop new technologies such as drones and flying cars.</p><p>It is also important to note that the use of machine learning in transportation raises concerns related to data privacy, security, and ethical considerations.</p><p><strong>Finance:</strong></p><p>ML can be used to detect fraudulent activity, analyze financial markets, and make investment decisions. For example, it can be used to analyze financial data and identify patterns or anomalies that may indicate fraudulent activity, or to predict market trends and make more informed investment decisions.</p><p>It is important to note that the use of machine learning in finance also raises concerns related to data privacy, security, and ethical considerations.</p><p><strong>Manufacturing:</strong></p><p>ML can be used to optimize production processes, improve product quality, and reduce costs. For example, it can be used to optimize the production process, predict and prevent equipment failures, and improve supply chain management.</p><p>However, it is important to note that the use of machine learning in manufacturing also raises concerns related to data privacy, security, and ethical considerations.</p><p><strong>NLP:</strong></p><p>Machine learning can be used to analyze and understand human language, which can be used to create more natural and human-like interactions with computers, such as in virtual assistants, Chabots, and speech recognition systems.</p><p>However, it is important to note that the use of machine learning in NLP also raises concerns related to data privacy, security, and ethical considerations, such as bias and interpretability.</p><p><strong>Cyber Security:</strong></p><p>Machine learning can be used to detect and respond to cyber threats by analyzing network traffic, identifying anomalies and behavior, and identifying potential vulnerabilities in software.</p><p>It is important to note that the use of machine learning in cybersecurity also raises concerns related to data privacy, security, and ethical considerations, such as ensuring the protection of sensitive data, and the potential for misuse of the technology.</p><p><em>In conclusion, Machine learning has the potential to significantly impact a wide range of industries, including healthcare, finance, transportation, manufacturing, natural language processing, and cybersecurity. It can be used to improve efficiency, reduce costs, increase accuracy, and develop new technologies. However, it is important to note that the use of machine learning raises concerns related to data privacy, security, and ethical considerations. As technology continues to evolve, it is important to address these concerns and ensure that the benefits of machine learning are realized while minimizing any negative impacts.</em></p><p><strong><em>Follow me for easy content regarding to Python and Data Science.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f21784f519f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Data Structure]]></title>
            <link>https://medium.com/@faiqafiaz1/python-data-structure-ae9288ead535?source=rss-85f22dfd971c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae9288ead535</guid>
            <category><![CDATA[lists]]></category>
            <category><![CDATA[dictionaries-in-python]]></category>
            <category><![CDATA[tuples]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[set]]></category>
            <dc:creator><![CDATA[Syeda Faiqa fiaz]]></dc:creator>
            <pubDate>Fri, 27 Jan 2023 15:16:42 GMT</pubDate>
            <atom:updated>2023-02-12T18:52:41.988Z</atom:updated>
            <content:encoded><![CDATA[<p>In python, there are 4 types of built-in data structures:</p><ol><li>Lists</li><li>Tuples</li><li>Sets</li><li>Dictionaries</li></ol><h4><strong>Lists:</strong></h4><p>A list is an ordered collection of data or items that are changeable. Lists are mutable means we can edit the list after it is created.</p><p><strong>Code:</strong></p><pre># Creating a list<br>fruits = [&quot;apple&quot;, &quot;banana&quot;, &quot;cherry&quot;]<br><br># Accessing an item in the list<br>print(fruits[1]) # Output: banana<br><br># Changing an item in the list<br>fruits[2] = &quot;orange&quot;<br>print(fruits) # Output: [&quot;apple&quot;, &quot;banana&quot;, &quot;orange&quot;]<br><br># Looping through a list<br>for x in fruits:<br>  print(x)</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*us4QtWb6Fmmm6RRTxAJ9Xw.png" /></figure><p>You can also add, remove or modify items from a list, and perform various other operations on lists.</p><h4><strong>Tuples:</strong></h4><p>Tuple is a collection of ordered and immutable means we can add, remove or modify in tuples once its created.</p><p>Elements in Tuple is accessed by an index that is starting from 0.</p><p><strong>Code:</strong></p><pre># creating a tuple<br>my_tuple = (1, &#39;hello&#39;, 3.14)<br><br># accessing elements<br>print(my_tuple[0])  # prints 1<br>print(my_tuple[1])  # prints &#39;hello&#39;<br>print(my_tuple[2])  # prints 3.14</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/55/1*ErU9vDRpMQYWJcC6mGCEvw.png" /><figcaption>Output of above code for tuples</figcaption></figure><p>You can also use slicing to access a range of elements in the tuple. And also supports concatenation and repetition.</p><p><strong>Code:</strong></p><pre>print(my_tuple[1:3])  # prints (&#39;hello&#39;, 3.14)<br># concatenation<br>tuple1 = (1, 2, 3)<br>tuple2 = (4, 5, 6)<br>tuple3 = tuple1 + tuple2<br>print(tuple3)  # prints (1, 2, 3, 4, 5, 6)<br><br># repetition<br>tuple4 = tuple1 * 3<br>print(tuple4)  # prints (1, 2, 3, 1, 2, 3, 1, 2, 3)</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/1*RzzQ0CDuXWpLhhLhP7uTUA.png" /><figcaption>Output of concatenation and repetition</figcaption></figure><h4><strong>Sets:</strong></h4><p>A Set is an unordered collection of unique items or elements. We can define it by curly braces {} or set() both. Sets are mutable, it can be modified after being created.</p><p><strong>Code:</strong></p><pre># Creating a set using curly braces<br>fruits = {&quot;apple&quot;, &quot;banana&quot;, &quot;cherry&quot;}<br>print(fruits)<br><br># Creating a set using the set() function<br>vegetables = set([&quot;carrot&quot;, &quot;potato&quot;, &quot;tomato&quot;])<br>print(vegetables)</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*ovEDcNLNQvtq97bEJZqA-A.png" /></figure><p>Various set operations like union, intersection, add, remove can be performed.</p><pre># Set union<br>fruits = {&quot;apple&quot;, &quot;banana&quot;, &quot;cherry&quot;}<br>more_fruits = {&quot;mango&quot;, &quot;orange&quot;}<br>all_fruits = fruits.union(more_fruits)<br>print(all_fruits)<br><br># Set intersection<br>fruits = {&quot;apple&quot;, &quot;banana&quot;, &quot;cherry&quot;}<br>more_fruits = {&quot;banana&quot;, &quot;orange&quot;}<br>common_fruits = fruits.intersection(more_fruits)<br>print(common_fruits)<br><br># Set difference<br>fruits = {&quot;apple&quot;, &quot;banana&quot;, &quot;cherry&quot;}<br>more_fruits = {&quot;banana&quot;, &quot;orange&quot;}<br>unique_fruits = fruits.difference(more_fruits)<br>print(unique_fruits)<br> fruits = {&quot;apple&quot;, &quot;banana&quot;, &quot;cherry&quot;}<br><br># Adding an element<br>fruits.add(&quot;mango&quot;)<br>print(fruits)<br><br># Removing an element<br>fruits.remove(&quot;banana&quot;)<br>print(fruits)</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*iu48pl16q_jzJmtNbtMNBg.png" /></figure><h4><strong>Dictionaries:</strong></h4><p>Dictionaries is a pair of keys and values in which keys are unique. It can be easily modified and also called hash maps because it is implemented using a hash table data structure.</p><pre>my_dict = {&#39;cat&#39;: &#39;feline&#39;, &#39;dog&#39;: &#39;canine&#39;}<br>print(my_dict[&#39;cat&#39;]) # Output: &#39;feline&#39;<br><br>my_dict[&#39;dog&#39;] = &#39;canidae&#39;<br>print(my_dict) # Output: {&#39;cat&#39;: &#39;feline&#39;, &#39;dog&#39;: &#39;canidae&#39;}</pre><p>There are many other data structures in python that are available in external libraries like:</p><ol><li><strong>Array:</strong></li></ol><p>It is used to store multiple values in a single variable that can be modified easily. The array is a built-in function of python and Python also has numpy array which is an extension of the python list and is used for numerical calculations, it is more efficient and has more functionality than the python list.</p><p><strong>Code:</strong></p><pre>from array import array<br><br>my_array = array(&quot;i&quot;, [1, 2, 3, 4, 5])  # i indicates the type of array elements as integer<br>print(my_array) # Output: array(&#39;i&#39;, [1, 2, 3, 4, 5])<br><br># Accessing the array elements<br>print(my_array[1]) # Output: 2<br><br># Modifying the array elements<br>my_array[1] = 10<br>print(my_array) # Output: array(&#39;i&#39;, [1, 10, 3, 4, 5])</pre><p>2.<strong> Stack:</strong></p><p>A stack is a linear data structure in Python that follows the Last In First Out (LIFO) principle. It means that the last element added to the stack will be the first one to be removed. Python provides the “list” data type as a built-in implementation of a stack.</p><p>The list data type provides the following stack operations:</p><ul><li>push</li><li>pop</li><li>peek</li><li>is_empty</li></ul><p><strong>Code:</strong></p><pre>stack = [] # Initialize an empty stack<br><br># Push elements onto the stack<br>stack.append(1)<br>stack.append(2)<br>stack.append(3)<br><br># Pop elements from the stack<br>print(stack.pop()) # Output: 3<br>print(stack.pop()) # Output: 2<br>print(stack.pop()) # Output: 1</pre><p>3. <strong>Queue:</strong></p><p>A queue is a linear data structure in Python that follows the First In First Out (FIFO) principle. It means that the first element added to the queue will be the first one to be removed.</p><p>Python provides the “deque” class from the “collections” module as a built-in implementation of a queue.</p><p>The deque class provides the following queue operations:</p><ul><li>enqueue</li><li>dequeue</li><li>is_empty</li><li>peek</li></ul><pre>q = Queue()<br>q.enqueue(1)<br>q.enqueue(2)<br>q.enqueue(3)<br><br>print(q.dequeue()) # Output: 1<br>print(q.dequeue()) # Output: 2<br>print(q.dequeue()) # Output: 3<br><br>#WITH DEQUE<br>from collections import deque<br>queue = deque()<br><br># Add element to the queue<br>queue.append(1)<br>queue.append(2)<br>queue.append(3)<br><br># Remove elements from the queue<br>print(queue.popleft()) # Output: 1<br>print(queue.popleft()) # Output: 2<br>print(queue.popleft()) # Output: 3<br></pre><p>4. <strong>Linked List:</strong></p><p>A linked list is a linear data structure that consists of a sequence of elements, where each element is a node that contains a value and a reference to the next element. In Python, you can implement a linked list using a class called “Node” that contains a value and a reference to the next node.</p><pre>class Node:<br>    def __init__(self, data=None):<br>        self.data = data<br>        self.next = None<br>        <br>class LinkedList:<br>    def __init__(self):<br>        self.head = None<br>        <br>    def add_node(self, data):<br>        new_node = Node(data)<br>        if self.head is None:<br>            self.head = new_node<br>        else:<br>            current_node = self.head<br>            while current_node.next:<br>                current_node = current_node.next<br>            current_node.next = new_node<br>            <br>    def remove_node(self, data):<br>        if self.head is None:<br>            return<br>        if self.head.data == data:<br>            self.head = self.head.next<br>        else:<br>            current_node = self.head<br>            while current_node.next:<br>                if current_node.next.data == data:<br>                    current_node.next = current_node.next.next<br>                    return<br>                current_node = current_node.next<br>    <br>    def print_list(self):<br>        current_node = self.head<br>        while current_node:<br>            print(current_node.data)<br>            current_node = current_node.next<br><br>llist = LinkedList()<br>llist.add_node(1)<br>llist.add_node(2)<br>llist.add_node(3)<br>llist.print_list()</pre><p><em>Follow me for easy content regarding to Python and Data Science.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae9288ead535" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>