<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Types on Ghafoor's Personal Blog</title><link>http://ghafoorsblog.com/categories/types/</link><description>Recent content in Types on Ghafoor's Personal Blog</description><generator>Hugo</generator><language>en</language><managingEditor>noreply@example.com (AG Sayyed)</managingEditor><webMaster>noreply@example.com (AG Sayyed)</webMaster><copyright>Copyright © 2024-2026 AG Sayyed. All Rights Reserved.</copyright><lastBuildDate>Sat, 16 May 2026 17:42:12 +0100</lastBuildDate><atom:link href="http://ghafoorsblog.com/categories/types/index.xml" rel="self" type="application/rss+xml"/><item><title>Types</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/07-python-datascience/01-module/004-types/</link><pubDate>Thu, 24 Jul 2025 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/07-python-datascience/01-module/004-types/</guid><description>&lt;p class="lead text-primary"&gt;
This document explains Python's core data types—integers, floats, strings, and booleans—along with typecasting and practical usage. Readers will learn how Python represents, converts, and manipulates different types of data for programming and analysis.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Python uses data types to represent different kinds of values. Understanding these types is essential for effective programming and data analysis.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="common-data-types-in-python"&gt;Common Data Types in Python&lt;/h2&gt;
&lt;p&gt;Python supports several fundamental data types:&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Expression&lt;/th&gt;
 &lt;th&gt;Data Type&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;11&lt;/td&gt;
 &lt;td&gt;int&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;21.213&lt;/td&gt;
 &lt;td&gt;float&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&amp;ldquo;words&amp;rdquo;&lt;/td&gt;
 &lt;td&gt;str&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;int&lt;/strong&gt;: Represents integers, which can be positive or negative. The range is finite but very large.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;float&lt;/strong&gt;: Represents real numbers, including values between integers. Floats allow precise selection of numbers between any two values, though there is a practical limit.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;str&lt;/strong&gt;: Represents sequences of characters, such as words or sentences.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="type-checking-and-typecasting"&gt;Type Checking and Typecasting&lt;/h2&gt;
&lt;p&gt;Python provides tools to check and convert data types:&lt;/p&gt;</description></item></channel></rss>