<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5095460208592459938</id><updated>2024-10-25T08:22:07.864+05:30</updated><category term="Basics of python"/><category term="strings in python"/><category term="Alphabet Patterns"/><category term="Installation of Python"/><category term="Number Programs"/><category term="Pattern programs in python"/><category term="Practise Questions"/><title type='text'>Python Programming</title><subtitle type='html'>You will find and learn everything related to Python. And everyday content keeps on adding.So stay updated</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-3316198638823427519</id><published>2020-07-13T13:23:00.004+05:30</published><updated>2020-07-13T22:42:34.909+05:30</updated><title type='text'>Call Center Operation in Covid-19</title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;Call Center Operation in Covid-19&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmXYJhmwj6bE7P8ZT5zk8GglfAykipWz99qStbsuwHszBwQ1PyV74Wxkk48xwfInxbbjaPkKf4qZKUfBGdUf6mMuBKx4fUHjjng2fMR4ZzZDpG6M-GlGbt_aNukMZ0NuDPTUtQuWq45vI/s844/Call-Center.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;image.png&quot; border=&quot;0&quot; data-original-height=&quot;422&quot; data-original-width=&quot;844&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmXYJhmwj6bE7P8ZT5zk8GglfAykipWz99qStbsuwHszBwQ1PyV74Wxkk48xwfInxbbjaPkKf4qZKUfBGdUf6mMuBKx4fUHjjng2fMR4ZzZDpG6M-GlGbt_aNukMZ0NuDPTUtQuWq45vI/w640-h320/Call-Center.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font size=&quot;6&quot;&gt;Introduction&lt;/font&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font size=&quot;5&quot; style=&quot;font-weight: normal;&quot;&gt;A call center is a department or a office in which incoming or outgoing calls from customers(either new or existing) are handled by the team of agents. Main functions of call centers are as follows:-&lt;/font&gt;&lt;/h2&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;font size=&quot;5&quot; style=&quot;font-weight: normal;&quot;&gt;Handling the problems of customers&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;5&quot; style=&quot;font-weight: normal;&quot;&gt;Offering customer support&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;5&quot; style=&quot;font-weight: normal; line-height: 1;&quot;&gt;Provide product and service information to customers&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;5&quot; style=&quot;font-weight: normal; line-height: 1;&quot;&gt;Upsell products and services&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Document all call information according to standard operating procedures&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1;&quot;&gt;&lt;font size=&quot;5&quot;&gt;There are much more functions that are performed at call center. We are not going into details.&lt;span 18px=&quot;&quot; arial=&quot;&quot; background-color:=&quot;&quot; c6c6c=&quot;&quot; color:=&quot;&quot; font-family:=&quot;&quot; font-size:=&quot;&quot; sans-serif=&quot;&quot; style=&quot;background-color: white;&quot; white=&quot;&quot;&gt;In addition to servicing customers’ needs, phone calls handled by call centers are valuable touchpoints with customers. With some products or services, phone calls are the only interaction that brands have with their customers&lt;b style=&quot;color: #333333;&quot;&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;Now let us see the impact of Covid-19 on call centers.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;line-height: 1; text-align: left;&quot;&gt;&lt;font size=&quot;6&quot;&gt;&amp;nbsp;Virtual Call Centers&lt;/font&gt;&lt;/h2&gt;&lt;div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;font size=&quot;5&quot; style=&quot;font-weight: normal;&quot;&gt;A &lt;/font&gt;&lt;font size=&quot;5&quot;&gt;virtual call center&lt;/font&gt;&lt;font size=&quot;5&quot; style=&quot;font-weight: normal;&quot;&gt; enables you to connect call directly to your agent&#39;s mobile phone. Instead of typical traditional call center&#39;s setup where agents are tied to the desks, a virtual call centers enables agents to work remotely from anywhere,anytime. As the virtual call centers are cloud based there is no need of setting up the costly equipment.&lt;/font&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: lato, sans-serif; font-size: 20px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;font face=&quot;inherit&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;While people aren’t turning to robotics quite yet, transitioning to a&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: inherit;&quot; /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;virtual call center has become a reality for many — thanks to COVID-19.&amp;nbsp;The Covid-19 pandemic ha changed the way call centers handles their customers around the world.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;font face=&quot;inherit&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;When COVID-19 hit, most contact centers were unprepared to transition to the work&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;from home model (WFH). During the transition, it was difficult for managers and agents&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;to handle the stress of trying to replicate the necessary hardware and software.More&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;than ever, managers maintaining operations from this new model are beginning to see&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;the importance of a virtual call center.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;A complicated structure that requires very heavy hardware and software is now replaces is now replaced with cloud bases services and is going to continue after this pandemic also.&lt;/span&gt;&lt;/font&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;As managers are starting to quickly realize, this recent pandemic came with new&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;maintenance and customer service expectations, they moving to cloud based platforms like TCN.&lt;/font&gt;&lt;/span&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: xx-large;&quot;&gt;Flexibility in work&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;Flexibility to quickly and dynamically change the physical location of your contact center is another essential continuity planning tool in handling fast-moving emergencies. It enables flexibility in work life balance. Now can the agents can give equal time to work&amp;nbsp; and their families.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot; style=&quot;background-color: white;&quot;&gt;The quality of service your agents provide is critical in the eyes of most customers. In fact, 55% of customers in a recent survey said they switched to another company after a bad customer experience. If you want to retain your customers, you need to make sure your call center agents are providing satisfying customer care. And by the nature of human we can say that a man feel more relaxed at home than at workplace so customers will be more satisfied by the service provided to them.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f2f2f2;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font size=&quot;6&quot;&gt;&lt;font face=&quot;inherit&quot; style=&quot;background-color: white;&quot;&gt;Service&amp;nbsp;&lt;/font&gt;Reliability&lt;/font&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.2px;&quot;&gt;&lt;font face=&quot;arial&quot; size=&quot;5&quot;&gt;The top priority for any contact center is to engage with customers when and where they want, be it a toll-free phone line, chat room, Twitter feed or a myriad of other channels. And if they don’t find you there, there’s little to stop them from moving on to your competition—especially when that competition is there when you’re not.&lt;/font&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.2px;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;Delivering this level of connectivity and engagement goes beyond just setting up a phone line or chat room. It also necessitates constantly maintaining it. And businesses that choose to manage their own communications are finding that this is no simple task.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.2px;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;Paramount to providing service in the event of a pandemic like COVID-19 affecting your area is to ensure that customers are always able to reach the contact center even in the event of network or voice service outages. This is ensured by many companies and to ensure it ,it requires flexibility with low cost and excellent customer service which has became possible in this pandemic by using virtual call centers and many other ways.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #222222;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;In the case of Microsoft, customers calling into Microsoft Support or using their Virtual Assistant are provided the choice to ‘message an Expert’. Upon choosing this option, customers receive an instant text message with a link to a messenger widget. This enables Microsoft to leverage its fans’ knowledge and enthusiasm to resolve customer queries regarding managing user accounts, billing and subscriptions.&lt;/font&gt;&lt;/span&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;AI and chatbots has made it possible to give an excellent customer service.&lt;/font&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222;&quot;&gt;Through AI, chatbots and expert customer service gig workers, brands are riding the wave of disruption and making a solid attempt at business as usual during highly unusual times.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font size=&quot;6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font size=&quot;6&quot;&gt;Automation&lt;/font&gt;&lt;/h2&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;Call Center Automation is the technology that automates the work done by a call center agent like using the pre-recorded audio instead of real agent.&amp;nbsp;&lt;/font&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Call Center Automation software helps in improving the productivity and compliance of call center.&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;It resolves customer problems faster while reducing costs.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;These are some automation trends in call center:-&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;Desktop Automation&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;RPA Robotic Process Automation&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;Visual IVR&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;Chatbots&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;Big Data Analytics&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;font size=&quot;5&quot;&gt;Now we are not going to deep dive into it but you can study about them on google.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font size=&quot;6&quot;&gt;Inbound and Outbound call center services&lt;/font&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;Inbound call center services are referred to one where a customer initiates to a call center to get his queries resolved whereas Outbound services are where call center agents make calls to prospective or existing customers.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;The main difference between an inbound and outbound call center is the way the calls take place. While many call centers handle both incoming and outgoing calls, when the majority of calls are inbound, it’s considered an inbound call center. Same goes for when the majority of calls are outbound.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;In this time of pandemic,t&lt;/font&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.19px;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;he call centers that are focused on inbound calls will make the most of the voicebots if they deploy them next to real agents so that routine calls can be taken over automatically by voicebots, and real agents can focus on upselling and issue solving in more complex calls.&lt;/font&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; letter-spacing: 0.19px;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;And the call centers focused purely on outbound, non-selling calls will absolutely relish voicebots as they will enable a fully automatic mode for communication with clients.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font size=&quot;6&quot;&gt;Customer Support&lt;/font&gt;&lt;/h2&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;When it comes to customer support. it&#39;s the most important part of call center as a bad customer support may lead in losing the customers.&lt;/font&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #33475b; font-family: AvenirNext, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;Customer support and service representatives who work in the call center field phone calls made from customers who need help addressing a specific issue.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f5f8fa;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot; style=&quot;background-color: white;&quot;&gt;As we have talked about automation in earlier part, we can use it in many ways in customer services like using chatbots,using pre-recorded calls for most asked queries.Apart from this&amp;nbsp;&lt;/font&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;every customer has their own unique needs and goals that are specific to their situation. Recognizing these differences and adapting your communication to align with each customer is a great way to build rapport.&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;font face=&quot;inherit&quot; size=&quot;6&quot;&gt;Call center in India&lt;/font&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot; style=&quot;background-color: white;&quot;&gt;Having a call center in India is the norm for several global companies today. In order to meet the growing international demand for cost-effective, customer-oriented call centers, many organizations worldwide are outsourcing these services by setting up call centers in India.&lt;b&gt;India has the largest English speaking audience after US &lt;/b&gt;which makes India a better choice for companies investing in India.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot; style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;inherit&quot; size=&quot;5&quot; style=&quot;background-color: white;&quot;&gt;There is the large IT&amp;nbsp; industry in India and many students and adults wants to grow their future in this industry which attracts companies.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; font-family: Georgia, serif;&quot;&gt;&lt;font size=&quot;5&quot;&gt;In a call center operation, manpower typically accounts for 55 to 60 percent of the total cost. In India, manpower is available at a fraction of the cost that is prevalent overseas. However, some people get deterred by the fact that cost savings are not seen immediately.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;font size=&quot;6&quot;&gt;Conclusion&lt;/font&gt;&lt;/h2&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;From our above discussion, we can conclude that in this pandemic time the technology has helped call centers to grow and enhance their customer Service experience. Hope you like this blog . If you have any weird experiences with call centers,then please share with us in comments.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/3316198638823427519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/07/call-center-operation-in-covid-19.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/3316198638823427519'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/3316198638823427519'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/07/call-center-operation-in-covid-19.html' title='Call Center Operation in Covid-19'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmXYJhmwj6bE7P8ZT5zk8GglfAykipWz99qStbsuwHszBwQ1PyV74Wxkk48xwfInxbbjaPkKf4qZKUfBGdUf6mMuBKx4fUHjjng2fMR4ZzZDpG6M-GlGbt_aNukMZ0NuDPTUtQuWq45vI/s72-w640-h320-c/Call-Center.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-8574322632733320519</id><published>2020-07-12T19:48:00.001+05:30</published><updated>2020-07-12T19:48:30.305+05:30</updated><title type='text'>Importance of AI in COVID-19 </title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;Importance of AI in COVID-19&lt;/h1&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUX77xQo37bMy8UAxiIsCbQWuURSQF_9kiJ8o4Plj-ym8kW_BVlIZZKPXLYPfbw-mJJg2OIV6YltUQPdoCkuXHvtr8489b5E7cqYnLo_-a4VHTpQvuk-9jh5QASn7T1sfwHePnWNIG7UA/s1013/ai+image.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;440&quot; data-original-width=&quot;1013&quot; height=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUX77xQo37bMy8UAxiIsCbQWuURSQF_9kiJ8o4Plj-ym8kW_BVlIZZKPXLYPfbw-mJJg2OIV6YltUQPdoCkuXHvtr8489b5E7cqYnLo_-a4VHTpQvuk-9jh5QASn7T1sfwHePnWNIG7UA/w400-h175/ai+image.jpeg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;6&quot;&gt;Introduction&lt;/font&gt;&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;COVID-19 has brought the great changes in our lives, from ruining the economy to making the country so much digitally forward in such a less amount of time.&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;PT Serif&amp;quot;, serif;&quot;&gt;India’s internet consumption rose by 13% since the nationwide lockdown was put in place to check the spread of Covid-19, according to telecom ministry data that showed Indians consumed 308 petabytes (PB) or 308,000 terabytes (TB) of data daily on an average for the week beginning March 22&lt;/span&gt;&amp;nbsp;.&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;Online classes to work from home all things require you to have an internet connection. That means we require online applications to help in these process.Now you might be wondering that what is the role of AI in this process.Let us first talk about what is AI.&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;6&quot;&gt;What is AI ?&lt;/font&gt;&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;AI stands for artificial Intelligence. Now as the word itself suggest, the task which require human brain to be done but can be done by machines by applying some algorithms.&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; color: #080e14; font-family: &amp;quot;Proxima Nova&amp;quot;, sans-serif;&quot;&gt;&lt;font size=&quot;5&quot;&gt;AI systems will typically demonstrate at least some of the following behaviours associated with human intelligence: planning, learning, reasoning, problem solving, knowledge representation, perception, motion, and manipulation and, to a lesser extent, social intelligence and creativity.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;We encounter AI in our daily life . Here are some examples :-&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;font size=&quot;5&quot;&gt;Search&amp;nbsp; engines like google use it for showing the most optimal search results(algorithms like Rankbrain)&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;5&quot;&gt;Gmail uses machine learning to identify the spam mails and much more&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;5&quot;&gt;Automated marketing emails use AI to figure out what emails to send based on how you’ve interacted with a business or website&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;5&quot;&gt;Ads which you see on a website or youtube are more of your interests&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font size=&quot;5&quot;&gt;Voice Searches on smart speakers or smartphones uses AI.&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&amp;nbsp;There are many more fields where AI is used. AI generally uses Python or R. We are not deep diving into working of AI but you can study these languages online.&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;h2 style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;6&quot;&gt;Testing of Covid-19&lt;/font&gt;&lt;/h2&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;We can see that a Danish pipetting robot is automating covid testing process around Europe. The benefit of testing via robots is that we can prevent the spread of Covid-19 to a much larger extent as there is no human intervention in this process. The robots like this are all working on AI. We train them and maintain their accuracy.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &amp;quot;PT Serif&amp;quot;, Georgia, serif;&quot;&gt;&lt;font size=&quot;5&quot;&gt;Since the beginning of May 2020, Flow Robotics has been helping to optimise the intensive work of analysing coronavirus samples in Denmark.&lt;/font&gt;&lt;/span&gt;&lt;font size=&quot;5&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;Roboto Slab&amp;quot;;&quot;&gt;&lt;font size=&quot;5&quot;&gt;Now, a team of robotics engineers at the University of Southern Denmark have developed a device that can automatically perform throat swabs without a human clinician being in the vicinity.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;Roboto Slab&amp;quot;;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Many &lt;b&gt;chatbots &lt;/b&gt;are now in use that can help in detecting the symptoms of covid-19. They require no human interaction for working. We can just train them and they can give the answers to the questions that are asked and can themselves identify the probability of the person having covid-19.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: Roboto, Arial, sans-serif;&quot;&gt;&lt;font size=&quot;5&quot;&gt;Enabling remote screening of patients will reduce the contact time between patients and frontline healthcare workers and, critically during the COVID-19 pandemic, can reduce the use of facemasks and other personal protective equipment during patient intake. Automation of lab and testing services: Robots can also automate manual operations that are labour-intensive, time-consuming and repetitive in order to reduce the burden on frontline healthcare worker.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: Roboto, Arial, sans-serif;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;These tasks are quite challenging but if implemented at large scale can be very beneficial in fighting with this pandemic.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;6&quot;&gt;&lt;b&gt;Work From Home&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;Work from home is the thing that has grown at tremendous rate in lockdown. Thousands of employees are working from home. Many meetings,seminars and webinars are held using zoom,Skype, etc.&lt;/font&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;These all apps works on AI.&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-large;&quot;&gt;Using&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-large;&quot;&gt;AI&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: x-large;&quot;&gt;, it converts all the speech from a meeting into text and even identifies each speaker.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #303133; font-family: proxima_novaregular;&quot;&gt;&lt;font size=&quot;5&quot;&gt;As working from home has increased the productivity of many employees, companies are looking to implement WFH as a permanent strategy for a percentage of their employees&lt;/font&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #303133; font-family: proxima_novaregular; font-size: 20px;&quot;&gt;.&lt;/span&gt;&lt;font size=&quot;5&quot;&gt;&amp;nbsp;As work from home is a big success, companies will continue it after lockdowns also. So in future it will require much more things than now which is possible using machine learning and AI.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #fcfcfc; color: #333333; font-family: Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-variant-ligatures: common-ligatures;&quot;&gt;&lt;font size=&quot;5&quot;&gt;AI pre-screening of candidates before inviting the most suitable in for interviews is an increasingly common practice at large companies which make thousands of hires each year, and sometimes attract millions of applicants&lt;/font&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #fcfcfc; color: #333333; font-family: Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 18px; font-variant-ligatures: common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;font size=&quot;6&quot;&gt;Conclusion&lt;/font&gt;&lt;/h1&gt;&lt;div&gt;&lt;font color=&quot;#333333&quot; face=&quot;Georgia, Cambria, Times New Roman, Times, serif&quot; size=&quot;5&quot;&gt;&lt;span style=&quot;background-color: #fcfcfc; font-variant-ligatures: common-ligatures;&quot;&gt;Her we can conclude that AI is playing a greater role in making our lives easy and it will continue growing in future.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#333333&quot; face=&quot;Georgia, Cambria, Times New Roman, Times, serif&quot; size=&quot;5&quot;&gt;&lt;span style=&quot;background-color: #fcfcfc; font-variant-ligatures: common-ligatures;&quot;&gt;Big tech-giants like Google,Facebook use AI at very large scale and there are many job opportunities in this field and it will continue to grow in near future as it produced outstanding results. Hope you like this post. Comment down your experiences of AI.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;font size=&quot;5&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/8574322632733320519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/07/importance-of-ai-in-covid-19.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/8574322632733320519'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/8574322632733320519'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/07/importance-of-ai-in-covid-19.html' title='Importance of AI in COVID-19 '/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUX77xQo37bMy8UAxiIsCbQWuURSQF_9kiJ8o4Plj-ym8kW_BVlIZZKPXLYPfbw-mJJg2OIV6YltUQPdoCkuXHvtr8489b5E7cqYnLo_-a4VHTpQvuk-9jh5QASn7T1sfwHePnWNIG7UA/s72-w400-h175-c/ai+image.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-7057784184173350650</id><published>2020-06-14T19:57:00.003+05:30</published><updated>2020-06-14T20:29:38.259+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Number Programs"/><category scheme="http://www.blogger.com/atom/ns#" term="Practise Questions"/><title type='text'>Keith Number</title><content type='html'>&lt;h2 style=&quot;height: 0px; text-align: left;&quot;&gt;KEITH NUMBER&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;Before&amp;nbsp; moving on to code let us talk about what is &lt;b&gt;Keith number&lt;/b&gt;&amp;nbsp;. A number is said to be &lt;b&gt;Keith Number&lt;/b&gt;, if&amp;nbsp; it appears in the sequence where first &lt;b&gt;n&lt;/b&gt; numbers are digits of&amp;nbsp; number itself and rest are formed by repeatedly adding the previous &lt;b&gt;n &lt;/b&gt;numbers of the sequence . It is illustrated in the example below:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;eg.&amp;nbsp;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;1. 14 is a Keith number&amp;nbsp;&lt;/b&gt;&amp;nbsp; &amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&amp;nbsp; &amp;nbsp; Sequence formed by &lt;b&gt;14&lt;/b&gt; is&amp;nbsp; 1, 4, 5, 9,&lt;b&gt; 14, . . . .&lt;/b&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&amp;nbsp; &amp;nbsp; First two numbers(1, 4) are digits of number(14)&amp;nbsp; itself and rest are formed by adding the&amp;nbsp; previous&amp;nbsp; two numbers of sequence(1+4=5, 5+4=9, 9+5=14).&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;2. 197 is a Keith number&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large; font-weight: bold;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Sequence formed by&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;b&gt;197&lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;is 1, 9, 7, 17,&amp;nbsp; 33,&amp;nbsp; 57, 107,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;197&lt;/b&gt;, . . . .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;First three numbers(1, 9, 7) are digits of number(197)&amp;nbsp; itself and rest are formed by adding the&amp;nbsp; previous&amp;nbsp; two numbers of sequence(1+9+7=17, 9+7+17=33,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;7+17+33=57 ,&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;17+33+57=107 ,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;33+57+107-=&lt;b&gt;197&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;).&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;font color=&quot;#0b8043&quot; face=&quot;georgia&quot;&gt;&lt;b&gt;NOTE:t is recommended that you first try this question by yourself.&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;font color=&quot;#0b8043&quot; face=&quot;georgia&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;font color=&quot;#0b8043&quot; face=&quot;georgia&quot;&gt;&lt;b&gt;Python Code&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;font color=&quot;#0b8043&quot; face=&quot;georgia&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: consolas; font-size: 9.8pt;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;# Program to check for  keith number&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;br /&gt;&lt;/span&gt;t=&lt;span style=&quot;color: #8888c6;&quot;&gt;int&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter the number of times you want to execute the program &quot;&lt;/span&gt;))&lt;br /&gt;&lt;span style=&quot;color: grey;&quot;&gt;#This loop is for the number of  times you want to execute the program.. You don&#39;t have to restart the program again and again&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;for &lt;/span&gt;_ &lt;span style=&quot;color: #cc7832;&quot;&gt;in &lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;range&lt;/span&gt;(t):&lt;br /&gt;    n=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter a number to be checked for a Keith number &quot;&lt;/span&gt;)&lt;br /&gt;    length=&lt;span style=&quot;color: #8888c6;&quot;&gt;len&lt;/span&gt;(n)&lt;br /&gt;    lst=[]&lt;br /&gt;    &lt;span style=&quot;color: grey;&quot;&gt;# Appending the digits of number to a list&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;for &lt;/span&gt;i &lt;span style=&quot;color: #cc7832;&quot;&gt;in &lt;/span&gt;n:&lt;br /&gt;        lst.append(&lt;span style=&quot;color: #8888c6;&quot;&gt;int&lt;/span&gt;(i))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    sum=&lt;span style=&quot;color: #6897bb;&quot;&gt;0&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;    &lt;/span&gt;c=&lt;span style=&quot;color: #6897bb;&quot;&gt;0&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# We will break the loop when  sum of the last n numbers of seequence will be greater than n itself&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;while &lt;/span&gt;sum&amp;lt;&lt;span style=&quot;color: #8888c6;&quot;&gt;int&lt;/span&gt;(n):&lt;br /&gt;        &lt;span style=&quot;color: grey;&quot;&gt;#There is no  keith number from 1 to 10&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;if &lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;int&lt;/span&gt;(n)&amp;gt;=&lt;span style=&quot;color: #6897bb;&quot;&gt;0 &lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;and &lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;int&lt;/span&gt;(n)&amp;lt;=&lt;span style=&quot;color: #6897bb;&quot;&gt;10&lt;/span&gt;:&lt;br /&gt;            &lt;span style=&quot;color: #cc7832;&quot;&gt;break&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# Adding the last n numbers from the sequence&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;        &lt;/span&gt;sum=&lt;span style=&quot;color: #6897bb;&quot;&gt;0&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;for &lt;/span&gt;i &lt;span style=&quot;color: #cc7832;&quot;&gt;in &lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;range&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;len&lt;/span&gt;(lst)&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;len&lt;/span&gt;(lst)-length&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;-&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;):&lt;br /&gt;            sum+=lst[i-&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;]&lt;br /&gt;        lst.append(sum)&lt;br /&gt;&lt;br /&gt;        &lt;span style=&quot;color: grey;&quot;&gt;# If sum is equal to n then break the loop and initialize c to 1&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;if &lt;/span&gt;sum==&lt;span style=&quot;color: #8888c6;&quot;&gt;int&lt;/span&gt;(n):&lt;br /&gt;            c=&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;break&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;    if &lt;/span&gt;c==&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;:&lt;br /&gt;        &lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;f&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;{&lt;/span&gt;n&lt;span style=&quot;color: #cc7832;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt; is a Keith number&quot;&lt;/span&gt;)&lt;br /&gt;    &lt;span style=&quot;color: #cc7832;&quot;&gt;else&lt;/span&gt;:&lt;br /&gt;        &lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;f&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;{&lt;/span&gt;n&lt;span style=&quot;color: #cc7832;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt; is a not Keith number&quot;&lt;/span&gt;)&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;font color=&quot;#0b8043&quot; face=&quot;georgia&quot;&gt;&lt;b&gt;Output:&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;georgia&quot;&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;Enter the number of times you want to execute the program 6&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;Enter a number to be checked for a Keith number 14&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;14 is a Keith number&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;Enter a number to be checked for a Keith number 12&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;12 is a not Keith number&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;Enter a number to be checked for a Keith number 5752090994058710841670361653731519&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;5752090994058710841670361653731519 is a Keith number&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;Enter a number to be checked for a Keith number 197&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;197 is a Keith number&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;Enter a number to be checked for a Keith number 47&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;47 is a Keith number&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;Enter a number to be checked for a Keith number 565&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#d52c1f&quot; size=&quot;4&quot;&gt;&lt;b&gt;565 is a not Keith number&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b8043; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;&lt;i&gt;Please share this post if&amp;nbsp; this was useful and comment below your doubts and questions&lt;/i&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/7057784184173350650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/06/Keith Number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/7057784184173350650'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/7057784184173350650'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/06/Keith Number.html' title='Keith Number'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-2101991767688512828</id><published>2020-02-07T16:58:00.001+05:30</published><updated>2020-02-08T11:03:48.993+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Alphabet Patterns"/><category scheme="http://www.blogger.com/atom/ns#" term="Pattern programs in python"/><title type='text'>Printing pattern A using A&#39;s and * &#39;s</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Printing pattern A using A&#39;s&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;We are going to write our first &lt;b&gt;pattern&lt;/b&gt; program in &lt;b&gt;python. &lt;/b&gt;Printing &lt;b&gt;pattern A&lt;/b&gt; using &lt;b&gt;A&#39;s&lt;/b&gt; is much simple in &lt;b&gt;python&lt;/b&gt; as compare to any other programming language.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;We will simply be using for loop and if-else statement for constructing a pattern A. Here is the code of how you will do that.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;# Program to print a pattern A using A&#39;s&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;str=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;var=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;A&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;j=&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;for &lt;/span&gt;i &lt;span style=&quot;color: #cc7832;&quot;&gt;in &lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;range&lt;/span&gt;(&lt;span style=&quot;color: #6897bb;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;-&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;):
    &lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(str*&lt;span style=&quot;color: #6897bb;&quot;&gt;85&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #aa4926;&quot;&gt;end&lt;/span&gt;=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;&quot;&lt;/span&gt;)
    &lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(str*i+var&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #aa4926;&quot;&gt;end&lt;/span&gt;=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;&quot;&lt;/span&gt;)

    &lt;span style=&quot;color: #cc7832;&quot;&gt;if &lt;/span&gt;i==&lt;span style=&quot;color: #6897bb;&quot;&gt;10&lt;/span&gt;:
        &lt;span style=&quot;color: #cc7832;&quot;&gt;continue&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;    elif &lt;/span&gt;i==&lt;span style=&quot;color: #6897bb;&quot;&gt;4&lt;/span&gt;:
       &lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(str+var+str+var+str+var+str+var+str+var+str+var+str)
       j=j+&lt;span style=&quot;color: #6897bb;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;else&lt;/span&gt;:
      &lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(str*j+var)
      j=j+&lt;span style=&quot;color: #6897bb;&quot;&gt;2&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: #e0e0e0; color: rgba(0 , 0 , 0 , 0.9); font-family: &amp;quot;consolas&amp;quot; , monospace; font-size: 15px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #e0e0e0; border-radius: 10px; border: 0px; line-height: 1.58; margin-bottom: 10px; overflow: auto; padding: 10px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: rgba(0 , 0 , 0 , 0.9); font-family: &amp;quot;consolas&amp;quot; , monospace; font-size: 15px;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot; , monospace; font-size: 15px;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;A          
         A   A
        A     A
       A       A
      A         A
     A A A A A A A 
    A             A
   A               A
  A                 A&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h2 style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; height: 0px; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Printing pattern A using *&#39;s&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Now, lets directly see the code.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;# Program to print a pattern A using A&#39;s&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;str=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;var=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;*&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;j=&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;for &lt;/span&gt;i &lt;span style=&quot;color: #cc7832;&quot;&gt;in &lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;range&lt;/span&gt;(&lt;span style=&quot;color: #6897bb;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;-&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;):
    &lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(str*&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #aa4926;&quot;&gt;end&lt;/span&gt;=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;&quot;&lt;/span&gt;)
    &lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(str*i+var&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #aa4926;&quot;&gt;end&lt;/span&gt;=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;&quot;&lt;/span&gt;)

    &lt;span style=&quot;color: #cc7832;&quot;&gt;if &lt;/span&gt;i==&lt;span style=&quot;color: #6897bb;&quot;&gt;10&lt;/span&gt;:
        &lt;span style=&quot;color: #cc7832;&quot;&gt;continue&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;    elif &lt;/span&gt;i==&lt;span style=&quot;color: #6897bb;&quot;&gt;4&lt;/span&gt;:
       &lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(str+var+str+var+str+var+str+var+str+var+str+var+str)
       j=j+&lt;span style=&quot;color: #6897bb;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;else&lt;/span&gt;:
      &lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(str*j+var)
      j=j+&lt;span style=&quot;color: #6897bb;&quot;&gt;2&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #e0e0e0; border-radius: 10px; border: 0px; line-height: 1.58; margin-bottom: 10px; overflow: auto; padding: 10px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;*         
         *   *
        *     *
       *       *
      *         *
     * * * * * * * 
    *             *
   *               *
  *                 *&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/2101991767688512828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/02/printing-pattern-A.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/2101991767688512828'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/2101991767688512828'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/02/printing-pattern-A.html' title='Printing pattern A using A&#39;s and * &#39;s'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-6842479928976324956</id><published>2020-02-03T17:00:00.001+05:30</published><updated>2020-02-08T11:41:11.021+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics of python"/><category scheme="http://www.blogger.com/atom/ns#" term="strings in python"/><title type='text'>String methods in python</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Python String Methods&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Python has very large set of in-built functions in strings which we can use directly without writing any extra code.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Note: We can store the result after applying methods into variables. There will be no change in the original string after applying these methods.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;We will the methods step by step with examples.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;1.) capitalize()&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;It capitalizes the first letter of our string.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: large;&quot;&gt;eg.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;str = &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;i am a word&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;m=str.capitalize()

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(m)&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;color: #cc0000; font-size: x-large;&quot;&gt;I am a word&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;2.) casefold()&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;It&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;converts the characters of string into lowercase.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;str = &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;SUN RISES IN EAST&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;m=str.casefold()

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(m)&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #cc0000; font-family: Lora, serif; font-size: x-large;&quot;&gt;sun rises in east&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;3.) count()&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;It returns the count of character that is passed.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;str = &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Betty bought a bit of butter, But the butter was so bitter, So she bought some better butter, To make the bitter butter better&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;m=str.count(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;b&quot;&lt;/span&gt;) &lt;span style=&quot;color: grey;&quot;&gt;# returns cont of small b&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;n=str.count(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;B&quot;&lt;/span&gt;) &lt;span style=&quot;color: grey;&quot;&gt;# returns cont of capital B&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(m)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(n)&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;11&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;2&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;You can also specify the starting and ending points in a string.It will count the elements within specified length.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: Lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: 400; white-space: normal;&quot;&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;pre style=&quot;color: #a9b7c6; font-family: consolas; font-size: 9.8pt;&quot;&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 9.8pt;&quot;&gt;str = &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Betty bought a bit of butter, But the butter was so bitter, So she bought some better butter, To make the bitter butter better&quot;&lt;/span&gt;m=str.count(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;b&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;40&lt;/span&gt;) &lt;span style=&quot;color: grey;&quot;&gt;# returns cont of small between 20 and 40&lt;/span&gt;n=str.count(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;butter&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;50&lt;/span&gt;) &lt;span style=&quot;color: grey;&quot;&gt;# returns cont of capital butter between 30 and 50&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(m)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(n)&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: 400; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;2&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;4.) endswith()&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;This method returns true if a string ends with a word or&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;character specified in brackets.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;str = &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Betty bought a bit of butter, But the butter was so bitter, So she bought some better butter, To make the bitter butter better&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;m=str.endswith(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;b&quot;&lt;/span&gt;) &lt;span style=&quot;color: grey;&quot;&gt;# returns cont of small b&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;n=str.endswith(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;butter&quot;&lt;/span&gt;) &lt;span style=&quot;color: grey;&quot;&gt;# returns cont of capital B&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(m)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(n)&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;True&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&lt;b style=&quot;background-color: white;&quot;&gt;You can also specify the starting and ending points in a string.It will check the ending characters within specified length.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;str = &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Betty bought a bit of butter, But the butter was so bitter, So she bought some better butter, To make the bitter butter better&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;m=str.endswith(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;u&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;40&lt;/span&gt;)

n=str.endswith(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;butter&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;40&lt;/span&gt;)


&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(m)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(n)&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;True&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;5.) find()&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Searches the string for a specified value and returns the index of&amp;nbsp; string where it was found&lt;b&gt;. If the specified value occurs for more than one then it will return the index of string which it encounter first.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;str = &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Betty bought a bit of butter, But the butter was so bitter, So she bought some better butter, To make the bitter butter better&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;m=str.find(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;b&quot;&lt;/span&gt;)

n=str.find(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;butter&quot;&lt;/span&gt;)


&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(m)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(n)&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;6&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;22&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;You can also specify the starting and ending points in a string.It will find the string&amp;nbsp; within specified length.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;str = &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Betty bought a bit of butter, But the butter was so bitter, So she bought some better butter, To make the bitter butter better&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;m=str.find(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;b&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;50&lt;/span&gt;)

n=str.find(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;butter&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;40&lt;/span&gt;)


&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(m)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(n)&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: Lora, serif; font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;38&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;86&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;6.) index()&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;It works in the same way as find works.Just you have to replace index with find.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;7.) isalnum()&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;It returns true if the characters in the string are alphanumeric(&lt;b&gt;i.e&lt;/b&gt; it must be combination of alphabets and numbers, no other symbol is allowed) else return False.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Python123&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# alphanumeric(combination of alphabets and numbers)&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string1=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Python 123&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# Space is included&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string2=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Python&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# only alphabets&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string3=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;1234&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# only numbers&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string4=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Python123$%^.&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# special characters included&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;b= string.isalnum()
b1= string1.isalnum()
b2= string2.isalnum()
b3= string3.isalnum()
b4= string4.isalnum()

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b1)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b2)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b3)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b4)&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: #292929;&quot;&gt;Output:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;True&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;True&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;True&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;8.) isalpha()&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;It returns true if all the characters in a string are alphabets else return false&lt;/span&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Python123&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# alphanumeric(combination of alphabets and numbers)&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string1=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Python &quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# Space is included&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string2=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Python&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# only alphabets&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;b= string.isalpha()
b1= string1.isalpha()
b2= string2.isalpha()

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b1)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b2)&lt;/pre&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;Output:&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;True&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;9.) isdigit()&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;It returns true if all the characters in a string are numbers.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Python123&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# alphanumeric(combination of alphabets and numbers)&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string1=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Python&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string2=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;123&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;b= string.isdigit()
b1= string1.isdigit()
b2= string2.isdigit()

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b1)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b2)
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;Output:&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;True&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;9.) isidentifier()&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: large;&quot;&gt;It returns true if all the characters in a string are valid identifiers.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;A string is considered a valid identifier if it only contains alphanumeric letters (a-z) and (0-9), or underscores (_). &lt;b&gt;A valid identifier cannot start with a number, or contain any spaces.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/b&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Python123_&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# alphanumeric(combination of alphabets and numbers)&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string1=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;_Python123&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string2=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;123&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string3=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;1python&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;b= string.isidentifier()
b1= string1.isidentifier()
b2= string2.isidentifier()
b3= string3.isidentifier()

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b1)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b2)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b3)&lt;/pre&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;Output:&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: inherit; font-size: large;&quot;&gt;True&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: inherit; font-size: large;&quot;&gt;True&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: inherit; font-size: large;&quot;&gt;False&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: inherit; font-size: large;&quot;&gt;False&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;10.) islower()&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&amp;nbsp;It return true if all values in a string are in lowecase.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;python123_&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# alphanumeric(combination of alphabets and numbers)&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string1=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;_Python123&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# Space is included&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string2=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;123&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;string3=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;1python&quot;&lt;/span&gt;b= string.islower()
b1= string1.islower()
b2= string2.islower()
b3= string3.islower()

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b1)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b2)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b3)&lt;/pre&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;Output:&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;True&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;True&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;10.) isupper()&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-size: large;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-weight: bold;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp;It return true if all the characters in string are in uppercase.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-size: large;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;PYTHON123_&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# alphanumeric(combination of alphabets and numbers)&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string1=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;_Python123&quot; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# Space is included&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;string2=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;123&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;string3=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;1Python&quot;&lt;/span&gt;b= string.isupper()
b1= string1.isupper()
b2= string2.isupper()
b3= string3.isupper()

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b1)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b2)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b3)
&lt;/pre&gt;
&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;Output:&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;True&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;11.) isspace()&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-weight: bold;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;It return true if all the characters in a string are spaces.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;string1=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;_ Python123&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;string2=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot; g   &quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;b= string.isspace()
b1= string1.isspace()
b2= string2.isspace()

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b1)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b2)
&lt;/pre&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;Output:&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;True&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #cc0000; font-family: lora, serif; font-size: x-large;&quot;&gt;False&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;12.) lower()&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-weight: bold;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;It converts all the characters in the string to lowercase.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;PYTHON &quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;string1=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;_ Python123&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;b= string.lower()
b1= string1.lower()

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b1)&lt;/pre&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;Output:&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;python&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;_ python123&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp;g&amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;13.) replace()&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-weight: bold;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;It replaces the specified character or string with a particular character or word.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string = &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Betty bought a bit of butter, But the butter was so bitter, So she bought some better butter, To make the bitter butter better&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;b= string.replace(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;butter&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;milk&quot;&lt;/span&gt;)

b1= string.replace(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;,&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;-&quot;&lt;/span&gt;)

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b1)&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;Output:&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;Betty bought a bit of milk, But the milk was so bitter, So she bought some better milk, To make the bitter milk better&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;Betty bought a bit of butter- But the butter was so bitter- So she bought some better butter- To make the bitter butter better&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;:We can also specify the number of occurrences upto which we want to replace the number.&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string = &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Betty bought a bit of butter, But the butter was so bitter, So she bought some better butter, To make the bitter butter better&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;b= string.replace(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;butter&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;milk&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;3&lt;/span&gt;)

b1= string.replace(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;,&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;-&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;2&lt;/span&gt;)

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b1)&lt;/pre&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/b&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;Output:&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;Betty bought a bit of milk, But the milk was so bitter, So she bought some better milk, To make the bitter butter better&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;Betty bought a bit of butter- But the butter was so bitter- So she bought some better butter, To make the bitter butter better&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;14.) split()&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-weight: bold;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;Split returns a list on the basis of separator you specify. By default it takes space as separator.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #292929; font-family: &amp;quot;lora&amp;quot; , serif;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string = &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Betty bought a bit of butter, But the butter was so bitter, So she bought some better butter, To make the bitter butter better&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;b= string.split()

b1=string.split(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;,&quot;&lt;/span&gt;)

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(b))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b1)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(b1))&lt;/pre&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;Output:&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;[&#39;Betty&#39;, &#39;bought&#39;, &#39;a&#39;, &#39;bit&#39;, &#39;of&#39;, &#39;butter,&#39;, &#39;But&#39;, &#39;the&#39;, &#39;butter&#39;, &#39;was&#39;, &#39;so&#39;, &#39;bitter,&#39;, &#39;So&#39;, &#39;she&#39;, &#39;bought&#39;, &#39;some&#39;, &#39;better&#39;, &#39;butter,&#39;, &#39;To&#39;, &#39;make&#39;, &#39;the&#39;, &#39;bitter&#39;, &#39;butter&#39;, &#39;better&#39;]&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;lt;class &#39;list&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;[&#39;Betty bought a bit of butter&#39;, &#39; But the butter was so bitter&#39;, &#39; So she bought some better butter&#39;, &#39; To make the bitter butter better&#39;]&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;lt;class &#39;list&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;You can also specify the maxsplit in the given string.&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string = &lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Betty bought a bit of butter, But the butter was so bitter, So she bought some better butter, To make the bitter butter better&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;b= string.split(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;3&lt;/span&gt;)

b1=string.split(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;,&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;2&lt;/span&gt;)

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(b))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(b1)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(b1))&lt;/pre&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;Output:&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;[&#39;Betty&#39;, &#39;bought&#39;, &#39;a&#39;, &#39;bit of butter, But the butter was so bitter, So she bought some better butter, To make the bitter butter better&#39;]&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;lt;class &#39;list&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;[&#39;Betty bought a bit of butter&#39;, &#39; But the butter was so bitter&#39;, &#39; So she bought some better butter, To make the bitter butter better&#39;]&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;lt;class &#39;list&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;You can also take input using split() method.&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 9.8pt;&quot;&gt;user_input=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter string separated by spaces&quot;&lt;/span&gt;).split()

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Your given input in list format is&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;user_input)

m&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;n=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter two numbers seperated by space&quot;&lt;/span&gt;).split()

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Two inputs are :&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;m&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;n)&lt;/pre&gt;
&lt;/pre&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;Output:&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;Enter string separated by spaces 1 2 3 4 5 6 7&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;Your given input in list format is [&#39;1&#39;, &#39;2&#39;, &#39;3&#39;, &#39;4&#39;, &#39;5&#39;, &#39;6&#39;, &#39;7&#39;]&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;Enter two numbers seperated by space 2 3&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;Two inputs are : 2 3&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;There are many more methods but these are the most important methods that we will be using.&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif;&quot;&gt;&lt;b style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;14.) strip()&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;lora&amp;quot; , serif; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;An in-built function in python&amp;nbsp; which remove all trailing and leading spaces.&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; font-family: &amp;quot;times new roman&amp;quot;; font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #292929; font-family: lora, serif; font-size: large;&quot;&gt;eg.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 9.8pt;&quot;&gt;my_str=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;      strip is used  to remove spaces from start and end      &quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(my_str)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;length of  original string&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;len&lt;/span&gt;(my_str))

my_str1=my_str.strip()
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(my_str1)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Length of string after removing spaces&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;len&lt;/span&gt;(my_str1))

&lt;/pre&gt;
&lt;/pre&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/6842479928976324956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/02/string-methods-in-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/6842479928976324956'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/6842479928976324956'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/02/string-methods-in-python.html' title='String methods in python'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-5188232454400817756</id><published>2020-02-01T19:33:00.001+05:30</published><updated>2020-02-06T14:44:34.508+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics of python"/><category scheme="http://www.blogger.com/atom/ns#" term="strings in python"/><title type='text'>String Slicing in python </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;/div&gt;
&lt;h2 style=&quot;box-sizing: border-box; margin-bottom: 1rem; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;String Slicing Python&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;a href=&quot;https://www.codewithharry.com/static/common/uploads/Stringslice_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Slicing refers to extracting some words from a string. As in many other languages there are many different concepts for extracting a letters or words from a string ,in python we are having the concept of slicing. We can also the same things using looping, we will learn about it in our next tutorials.&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;box-sizing: border-box; margin-bottom: 1rem; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Indexing in Strings&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Before starting slicing, we need to understand the indexing in python. We have the concept of positive indexing&amp;nbsp; and&amp;nbsp; negative indexing.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Positive indexing starts from 0 to (length of string).It goes from forward to backward.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Negative indexing starts from -1 to -(length of string + 1).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;It is illustrated in below example&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.codewithharry.com/static/common/uploads/Stringslice_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; class=&quot;img-fluid img-responsive mx-auto d-block&quot; height=&quot;86&quot; src=&quot;https://www.codewithharry.com/static/common/uploads/Stringslice_1.jpg&quot; style=&quot;border-style: none; box-sizing: border-box; display: block !important; max-width: 100%; vertical-align: middle;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Below are some examples of how to use string slicing to extract characters from string.&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;box-sizing: border-box; margin-bottom: 1rem; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Accessing the characters in a string using positive index&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: Consolas;&quot;&gt;&lt;pre style=&quot;font-family: Consolas;&quot;&gt;&lt;pre style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;We are studying string slicing&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;s=string[&lt;span style=&quot;color: #6897bb;&quot;&gt;0&lt;/span&gt;] &lt;span style=&quot;color: grey;&quot;&gt;# A single character will be printed present at index 0&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;w=string[&lt;span style=&quot;color: #6897bb;&quot;&gt;4&lt;/span&gt;] &lt;span style=&quot;color: grey;&quot;&gt;# A single character will be printed present at index 4&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;q=string[&lt;span style=&quot;color: #6897bb;&quot;&gt;6&lt;/span&gt;]&lt;span style=&quot;color: grey;&quot;&gt;# A space is being stored in q as space is stored at index 6&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(s)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(q) &lt;span style=&quot;color: grey;&quot;&gt;# A single space will be printed&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(w)&lt;/span&gt;&lt;span style=&quot;font-size: 9.8pt;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;W&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;r&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Accessing the characters in a string using negative index&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;eg.&lt;/b&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: Consolas;&quot;&gt;&lt;pre style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;We are studying string slicing&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;s=string[-&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;] &lt;span style=&quot;color: grey;&quot;&gt;# Last character from the string will be printed&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;w=string[-&lt;span style=&quot;color: #6897bb;&quot;&gt;5&lt;/span&gt;] &lt;span style=&quot;color: grey;&quot;&gt;#  -5 index is equivalent to 25&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;t=string[&lt;span style=&quot;color: #6897bb;&quot;&gt;25&lt;/span&gt;] 
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(s)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(w)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(t)&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b&gt;g&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b&gt;i&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b&gt;i&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Slicing&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;We can extract the range of characters from string by providing indices in square brackets as &lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;[x:y:z]&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;where,&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;x= Starting Index (from where you want to extract)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;y= Ending&amp;nbsp; Index(upto where you want to extract)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;z= Jump(Number of characters you want to jump)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Note: Always keep one thing in mind that characters are printed from index x to y-1&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;We will understand the following with the help of examples:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;eg.&lt;/b&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: Consolas;&quot;&gt;&lt;pre style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;We do great things here&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;s=string[&lt;span style=&quot;color: #6897bb;&quot;&gt;0&lt;/span&gt;:&lt;span style=&quot;color: #6897bb;&quot;&gt;5&lt;/span&gt;]

w=string[-&lt;span style=&quot;color: #6897bb;&quot;&gt;4&lt;/span&gt;:-&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;] 

t=string[&lt;span style=&quot;color: #6897bb;&quot;&gt;6&lt;/span&gt;:-&lt;span style=&quot;color: #6897bb;&quot;&gt;5&lt;/span&gt;]
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(s)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(w)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(t)&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;We do&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;her&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;great things&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;eg.&lt;/b&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;We do great things here&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;s=string[&lt;span style=&quot;color: #6897bb;&quot;&gt;0&lt;/span&gt;:&lt;span style=&quot;color: #6897bb;&quot;&gt;5&lt;/span&gt;:&lt;span style=&quot;color: #6897bb;&quot;&gt;2&lt;/span&gt;]

t=string[&lt;span style=&quot;color: #6897bb;&quot;&gt;6&lt;/span&gt;:-&lt;span style=&quot;color: #6897bb;&quot;&gt;5&lt;/span&gt;:&lt;span style=&quot;color: #6897bb;&quot;&gt;3&lt;/span&gt;]
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(s)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(t)&lt;/pre&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b&gt;W o&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b&gt;gatn&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Here we are seeing that string skips number of positions that is given in z position i.e&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;s will print characters at 0,2 and 4 index&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;t will print characters at&amp;nbsp; 6,9,12 and 15 index&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: xx-large;&quot;&gt;Slicing without some parameters&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;eg.&lt;/b&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;string=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;We do great things here&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;s=string[&lt;span style=&quot;color: #6897bb;&quot;&gt;0&lt;/span&gt;::&lt;span style=&quot;color: #6897bb;&quot;&gt;2&lt;/span&gt;]

m=string[::]

p=string[&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;:]

q=string[:&lt;span style=&quot;color: #6897bb;&quot;&gt;7&lt;/span&gt;]

t=string[:-&lt;span style=&quot;color: #6897bb;&quot;&gt;5&lt;/span&gt;:&lt;span style=&quot;color: #6897bb;&quot;&gt;3&lt;/span&gt;]

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(s)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(m)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(p)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(q)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(t)&lt;/pre&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b&gt;W ogettig ee&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b&gt;We do great things here&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b&gt;e do great things here&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b&gt;We do g&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-size: large;&quot;&gt;&lt;b&gt;Wdgatn&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Here we see that string slicing also work when no arguments are given.It automatically takes whole string if no arguments are given.&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 atOptions = {
  &#39;key&#39; : &#39;a254855a212b63f1d387eb31013033b3&#39;,
  &#39;format&#39; : &#39;iframe&#39;,
  &#39;height&#39; : 300,
  &#39;width&#39; : 160,
  &#39;params&#39; : {}
 };
 document.write(&#39;&lt;scr&#39; + &#39;ipt type=&quot;text/javascript&quot; src=&quot;http&#39; + (location.protocol === &#39;https:&#39; ? &#39;s&#39; : &#39;&#39;) + &#39;://www.madcpms.com/a254855a212b63f1d387eb31013033b3/invoke.js&quot;&gt;&lt;/scr&#39; + &#39;ipt&gt;&#39;);
&lt;/script&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/5188232454400817756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/02/string-slicing-in-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/5188232454400817756'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/5188232454400817756'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/02/string-slicing-in-python.html' title='String Slicing in python '/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-6098436734744143549</id><published>2020-01-31T18:28:00.000+05:30</published><updated>2020-02-03T18:29:56.580+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics of python"/><title type='text'>Type Casting and Type Conversion in python</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Difference between Type Casting and Type Conversion&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The basic difference between type casting and type conversion is that type conversion is made automatically made by the interpreter or compiler whereas type casting is to be explicitly done by the developer.&lt;/span&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 atOptions = {
  &#39;key&#39; : &#39;a254855a212b63f1d387eb31013033b3&#39;,
  &#39;format&#39; : &#39;iframe&#39;,
  &#39;height&#39; : 300,
  &#39;width&#39; : 160,
  &#39;params&#39; : {}
 };
 document.write(&#39;&lt;scr&#39; + &#39;ipt type=&quot;text/javascript&quot; src=&quot;http&#39; + (location.protocol === &#39;https:&#39; ? &#39;s&#39; : &#39;&#39;) + &#39;://www.madcpms.com/a254855a212b63f1d387eb31013033b3/invoke.js&quot;&gt;&lt;/scr&#39; + &#39;ipt&gt;&#39;);
&lt;/script&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;We need type casting and type conversion when we need to convert the type of one variable to another type. When we want to perform addition or subtraction,the datatype of both variables .&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #222222; font-weight: 700;&quot;&gt;Type casting&lt;/span&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&amp;nbsp;can be defined as, casting of one data type to another data type, by the programmer, at the time of program design.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-size: large;&quot;&gt;&lt;b&gt;Automatic Type Conversion(Implicit Type Conversion)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-size: large;&quot;&gt;The interpreter only converts lower datatypes into higher datatypes.It cannot automatically convert higher datatype to lower datatype . It is also called Implicit Type Conversion&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-size: large;&quot;&gt;We can understand it by taking a real world example.Suppose that there is a person in a company who is working at a higher post, he cannot be automatically demoted by company, instead he has to be forced for doing that. Likewise, we may have other person in the company who is working at lowest position. If we want to promote him then it will happen very smoothly and the person is not required to be forced.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;eg.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: Consolas; font-size: 9.8pt;&quot;&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 9.8pt;&quot;&gt;var_1=&lt;span style=&quot;color: #6897bb;&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;
&lt;/span&gt;var_2=&lt;span style=&quot;color: #6897bb;&quot;&gt;100.98&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_1 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_1))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_2 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_2))

var_3=var_1+var_2

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type  of var_3 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_2))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Value of var_3 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;var_3)&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;Output:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of var_1 is&amp;nbsp; &amp;lt;class &#39;int&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt; &lt;/span&gt; &lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of var_2 is&amp;nbsp; &amp;lt;class &#39;float&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type&amp;nbsp; of var_3 is&amp;nbsp; &amp;lt;class &#39;float&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Value of var_3 is&amp;nbsp; 180.98000000000002&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgba(0, 0, 0, 0.84); font-family: roboto, sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgba(0, 0, 0, 0.84); font-family: roboto, sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;In this example we see that int(lower data type) is automatically converted to float(higher data type).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgba(0, 0, 0, 0.84); font-family: roboto, sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;eg.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; font-family: Consolas; font-size: 9.8pt;&quot;&gt;&lt;pre style=&quot;color: #a9b7c6; font-family: Consolas; font-size: 9.8pt;&quot;&gt;var_1=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;80&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;var_2=&lt;span style=&quot;color: #6897bb;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_1 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_1))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_2 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_2))

var_3=var_1+var_2

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type  of var_3 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_2))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Value of var_3 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;var_3)&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;Output:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of var_1 is&amp;nbsp; &amp;lt;class &#39;str&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt; &lt;/span&gt; &lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of var_2 is&amp;nbsp; &amp;lt;class &#39;int&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;Traceback (most recent call last):&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; File &quot;C:/Users/your name/PycharmProjects/firstproj/newfile.py&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;., line 5, in &amp;lt;module&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; var_3=var_1+var_2&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;TypeError: can only concatenate str (not &quot;int&quot;) to str&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgba(0, 0, 0, 0.84); font-family: roboto, sans-serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;In the above example we are getting typeerror as interpreter cannot perform implicit type conversion&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;color: #222222; font-size: x-large;&quot;&gt;Explicit Type Conversion&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-size: large;&quot;&gt;If we convert some data type to other datatype forcibly(i.e. manually) then it is called explicit type conversion.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222; font-size: large;&quot;&gt;Type conversion can be done by&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252830; word-spacing: 3px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;assigning the required data type function to the expression.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #252830; word-spacing: 3px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;eg.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: Consolas; font-size: 9.8pt;&quot;&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 9.8pt;&quot;&gt;var_1=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;80&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;var_2=&lt;span style=&quot;color: #6897bb;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_1 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_1))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_2 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_2))

var_1=&lt;span style=&quot;color: #8888c6;&quot;&gt;int&lt;/span&gt;(var_1) &lt;span style=&quot;color: grey;&quot;&gt;# Converting string to integer datatype&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;var_3=var_1+var_2

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_1 after conversion is is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_1))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type  of var_3 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_2))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Value of var_3 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;var_3)&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;Output:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;Type of var_1 is&amp;nbsp; &amp;lt;class &#39;str&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;Type of var_2 is&amp;nbsp; &amp;lt;class &#39;int&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;Type of var_1 after conversion is is&amp;nbsp; &amp;lt;class &#39;int&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;Type&amp;nbsp; of var_3 is&amp;nbsp; &amp;lt;class &#39;int&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;Value of var_3 is&amp;nbsp; 180&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;In the above example we are converting string to integer datatype using int() function&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;eg.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: Consolas; font-size: 9.8pt;&quot;&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 9.8pt;&quot;&gt;var_1=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;80&quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;var_2=&lt;span style=&quot;color: #6897bb;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_1 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_1))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_2 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_2))

var_2=&lt;span style=&quot;color: #8888c6;&quot;&gt;str&lt;/span&gt;(var_2) &lt;span style=&quot;color: grey;&quot;&gt;# Converting integer to string datatype&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;var_3=var_1+var_2

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_2 after conversion is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_2))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type  of var_3 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_3))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Value of var_3 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;var_3)&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;Output:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of var_1 is&amp;nbsp; &amp;lt;class &#39;str&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt; &lt;/span&gt; &lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of var_2 is&amp;nbsp; &amp;lt;class &#39;int&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of var_2 after conversion is&amp;nbsp; &amp;lt;class &#39;str&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type&amp;nbsp; of var_3 is&amp;nbsp; &amp;lt;class &#39;str&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Value of var_3 is&amp;nbsp; 80100&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgba(0, 0, 0, 0.84); font-family: roboto, sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;In the above example we are converting integer to string datatype using str() function&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;eg.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 9.8pt;&quot;&gt;var_1=&lt;span style=&quot;color: #6897bb;&quot;&gt;100.58&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;
&lt;/span&gt;var_2=&lt;span style=&quot;color: #6897bb;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_1 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_1))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_2 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_2))

var_1=&lt;span style=&quot;color: #8888c6;&quot;&gt;int&lt;/span&gt;(var_1) &lt;span style=&quot;color: grey;&quot;&gt;# Converting string to integer datatype&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;var_3=var_1+var_2

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of var_1 after conversion is is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_1))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type  of var_3 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(var_2))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Value of var_3 is &quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;var_3)&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;Output:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of var_1 is&amp;nbsp; &amp;lt;class &#39;float&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of var_2 is&amp;nbsp; &amp;lt;class &#39;int&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of var_1 after conversion is is&amp;nbsp; &amp;lt;class &#39;int&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type&amp;nbsp; of var_3 is&amp;nbsp; &amp;lt;class &#39;int&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Value of var_3 is&amp;nbsp; 200&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;In the above example we are converting float to integer datatype using int() function.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;Similarly we can convert a datatype to float using float() function.Syntax is same.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;color: #222222; font-size: x-large;&quot;&gt;Converting user input to int()&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;color: #222222; font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;eg.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 9.8pt;&quot;&gt;a=&lt;span style=&quot;color: #8888c6;&quot;&gt;int&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter first value&quot;&lt;/span&gt;)) &lt;span style=&quot;color: grey;&quot;&gt;# Converting input to integer&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;b=&lt;span style=&quot;color: #8888c6;&quot;&gt;float&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter second value&quot;&lt;/span&gt;))&lt;span style=&quot;color: grey;&quot;&gt;# Converting input to float&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;c=&lt;span style=&quot;color: #8888c6;&quot;&gt;int&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter third value&quot;&lt;/span&gt;))&lt;span style=&quot;color: grey;&quot;&gt;# Converting input to integer&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of a is&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(a))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of b is&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(b))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Type of c is&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(c))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Addition of numbers is&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;a+b+c)&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;Output:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Enter first value23&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt; &lt;/span&gt; &lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Enter second value34.56&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Enter third value12&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of a is &amp;lt;class &#39;int&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of b is &amp;lt;class &#39;float&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Type of c is &amp;lt;class &#39;int&#39;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Addition of numbers is 69.56&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgba(0, 0, 0, 0.84); font-family: roboto, sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgba(0, 0, 0, 0.84); font-family: roboto, sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;In the above example we are converting user input to integer and float. By default the input() takes values as string. To know more&amp;nbsp;&lt;a href=&quot;https://python3programmingcourse.blogspot.com/2020/01/taking-user-input-in-python.html&quot;&gt;Click here&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/6098436734744143549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/type-casting-and-type-conversion-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/6098436734744143549'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/6098436734744143549'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/type-casting-and-type-conversion-in.html' title='Type Casting and Type Conversion in python'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-1147851826251539464</id><published>2020-01-30T18:08:00.000+05:30</published><updated>2020-02-03T18:29:21.466+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics of python"/><title type='text'>Taking user input  in python</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Taking&amp;nbsp; user input in python&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Programmers and developers might often need a data to be entered by the user. Like you&amp;nbsp; might have seen many websites asking for your username and password for logging in such Facebook, Twitter, Gmail, etc. You need to enter your details to use these websites.This is just one application of importance of user inputs. This will stop you at a certain point and will move forward when you enter details&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To take user input from keyboard we just need to use an inbuilt function &lt;b&gt;input() &lt;/b&gt;in our program&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Note: Here we are discussing python 3.0 and above .The older versions have some different format so don&#39;t confuse with them&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;SYNTAX:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;input ( prompt )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;eg.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter your username&quot;&lt;/span&gt;)
username=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;()
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter your password&quot;&lt;/span&gt;)
password=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;()
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Your username is :&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;username)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Your password is :&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;password)&lt;/pre&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;Output:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Enter your username&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;mohit@yopmail.com&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Enter your password&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;123+-[]@&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Your username is : mohit@yopmail.com&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-family: Roboto, sans-serif;&quot;&gt;Your password is :123+-[]@&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;Or instead of using print (for specifying which input you want to take from user), you can simply use a statement inside input() function as specified in the example:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;eg.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;username = &lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter your username&quot;&lt;/span&gt;)
password = &lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter your password&quot;&lt;/span&gt;)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Your username is&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;, &lt;/span&gt;username)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Your username is&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;, &lt;/span&gt;password)&lt;/pre&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;Output:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Enter your username ankit@hotmail.com&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Enter your password ankit1234@#&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Your username is&amp;nbsp; ankit@hotmail.com&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #cc0000; font-family: Roboto, sans-serif;&quot;&gt;Your&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;color: #cc0000; font-family: Roboto, sans-serif;&quot;&gt;username is&amp;nbsp; ankit1234@#&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;Remember that the input() function takes input in the form of string.Numbers can also be taken as strings.It is illustrated in below example:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;eg.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 9.8pt;&quot;&gt;a=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter first value &quot;&lt;/span&gt;)
b=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter second value &quot;&lt;/span&gt;)
c=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter third value &quot;&lt;/span&gt;)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Output is&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;a+b+c) &lt;span style=&quot;color: grey;&quot;&gt;#Strings get concatenated when + operator is used&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;Output:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Enter first value 45&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Enter second value 67&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Enter third value 90&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Output is 456790&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;We can be double sure about it if we use&amp;nbsp;&lt;a href=&quot;https://python3programmingcourse.blogspot.com/2020/01/variables-in-python-and-checking-type.html&quot;&gt;type()&lt;/a&gt;&amp;nbsp;function for checking type of variables.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;a=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter first value&quot;&lt;/span&gt;)
b=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter second value&quot;&lt;/span&gt;)
c=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter third value&quot;&lt;/span&gt;)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Output is&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;a+b+c)
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(a))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(b))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(c))&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;
Output:&lt;/div&gt;
&lt;div style=&quot;color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Roboto, sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;Enter first value hii&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;Enter second value67.89&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;Enter third value][\\&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;Output is&amp;nbsp; hii 67.89][\\&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;lt;class &#39;str&#39;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;lt;class &#39;str&#39;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;lt;class &#39;str&#39;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-size: large;&quot;&gt;Printing value multiple times :&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;a=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter first value &quot;&lt;/span&gt;)
b=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter second value &quot;&lt;/span&gt;)
c=&lt;span style=&quot;color: #8888c6;&quot;&gt;input&lt;/span&gt;(&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Enter third value &quot;&lt;/span&gt;)
n=&lt;span style=&quot;color: #6897bb;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;((a+b+c+&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;&lt;/span&gt;)*&lt;span style=&quot;color: #6897bb;&quot;&gt;10&lt;/span&gt;)&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;Output:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Enter first value Hey!&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Enter second value Subscribe&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;
&lt;div&gt;
Enter third value this blog&lt;/div&gt;
&lt;div&gt;
Hey! Subscribe this blog&lt;/div&gt;
&lt;div&gt;
Hey! Subscribe this blog&lt;/div&gt;
&lt;div&gt;
Hey! Subscribe this blog&lt;/div&gt;
&lt;div&gt;
Hey! Subscribe this blog&lt;/div&gt;
&lt;div&gt;
Hey! Subscribe this blog&lt;/div&gt;
&lt;div&gt;
Hey! Subscribe this blog&lt;/div&gt;
&lt;div&gt;
Hey! Subscribe this blog&lt;/div&gt;
&lt;div&gt;
Hey! Subscribe this blog&lt;/div&gt;
&lt;div&gt;
Hey! Subscribe this blog&lt;/div&gt;
&lt;div&gt;
Hey! Subscribe this blog&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/1147851826251539464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/taking-user-input-in-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/1147851826251539464'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/1147851826251539464'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/taking-user-input-in-python.html' title='Taking user input  in python'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-5086307639223660412</id><published>2020-01-29T17:42:00.000+05:30</published><updated>2020-02-03T18:28:44.442+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics of python"/><title type='text'>Variables in Python and checking the type of variable</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;What are Variables?&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Variables are nothing but the reserved memory locations where you can store some values. When a variable is created it automatically allocates some memory for itself.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;How declaration in python is different from other programming languages??&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If you have been to other programming languages previously like java ,c or c++ then you need to give the datatype of the variable you want to use.&lt;b&gt;&amp;nbsp;But Python is a bit more flexible and intelligent you need not to specify the datatype of variable, python will automatically detect the datatype of variable will perform the operations accordingly.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;verdana&amp;quot; , &amp;quot;tahoma&amp;quot;; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Python variables do not need explicit declaration to reserve memory space.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;verdana&amp;quot; , &amp;quot;tahoma&amp;quot;; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;verdana&amp;quot; , &amp;quot;tahoma&amp;quot;; font-size: x-large; text-align: justify;&quot;&gt;&lt;b&gt;Assigning values to variables&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;You can simply assign values to variables by just putting an equals to(=) sign between variable and value.You can simply create a python file in pycharm&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 9.8pt;&quot;&gt; a=&lt;span style=&quot;color: #6897bb;&quot;&gt;10  &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# An integer variable&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt; b=&lt;span style=&quot;color: #6897bb;&quot;&gt;45.67 &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# floating point variable&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt; c=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Hii this is a string &quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt; print&lt;/span&gt;(a)
&lt;span style=&quot;color: #8888c6;&quot;&gt; print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt; print&lt;/span&gt;(c)&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;10&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;45.67&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Hii this is a string&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: Arial, Verdana, Tahoma; font-size: xx-large; text-align: justify;&quot;&gt;Multiple Assignments&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;You can assign multiple values to different variables&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt; a=b=c=&lt;span style=&quot;color: #6897bb;&quot;&gt;10                     &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# integer variables&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt; print&lt;/span&gt;(a)
&lt;span style=&quot;color: #8888c6;&quot;&gt; print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt; print&lt;/span&gt;(c)&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;10&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;10&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;10&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;eg.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt; a&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;b&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;c=&lt;span style=&quot;color: #6897bb;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;30                     &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# An integer variable&lt;/span&gt;&lt;span style=&quot;color: #8888c6;&quot;&gt; print&lt;/span&gt;(a)
&lt;span style=&quot;color: #8888c6;&quot;&gt; print&lt;/span&gt;(b)
&lt;span style=&quot;color: #8888c6;&quot;&gt; print&lt;/span&gt;(c)&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;10&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;20&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;30&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-family: Arial, Verdana, Tahoma; font-size: xx-large; text-align: justify;&quot;&gt;How to check the type of variables?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To check the type of variable use we can simply use a built-in method called type().&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;SYNTAX:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #e0e0e0; border-radius: 10px; border: 0px; color: rgba(0, 0, 0, 0.9); font-family: Consolas, monospace; font-size: 15px; line-height: 1.58; margin-bottom: 10px; overflow: auto; padding: 10px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;type(object)
type(name, bases, dict)&lt;/strong&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;We will understand it more clearly using examples:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;eg.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Consolas&#39;; font-size: 9.8pt;&quot;&gt;&lt;pre style=&quot;font-family: Consolas; font-size: 9.8pt;&quot;&gt;a=&lt;span style=&quot;color: #6897bb;&quot;&gt;10  &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# An integer variable&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;b=&lt;span style=&quot;color: #6897bb;&quot;&gt;45.67 &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;# floating point variable&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;
&lt;/span&gt;c=&lt;span style=&quot;color: #6a8759;&quot;&gt;&quot;Hii this is a string &quot;&lt;/span&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;
&lt;/span&gt;d=[&lt;span style=&quot;color: #6897bb;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #cc7832;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #6897bb;&quot;&gt;4&lt;/span&gt;]


e={}

&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(a))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(b))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(c))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(d))
&lt;span style=&quot;color: #8888c6;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #8888c6;&quot;&gt;type&lt;/span&gt;(e))&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Output:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;lt;class &#39;int&#39;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;lt;class &#39;float&#39;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;lt;class &#39;str&#39;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;lt;class &#39;list&#39;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;lt;class &#39;dict&#39;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Here we can see that type() method is returning the type of variables used in program&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/5086307639223660412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/variables-in-python-and-checking-type.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/5086307639223660412'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/5086307639223660412'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/variables-in-python-and-checking-type.html' title='Variables in Python and checking the type of variable'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-8156168016767905435</id><published>2020-01-28T19:06:00.000+05:30</published><updated>2020-02-03T18:27:44.312+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics of python"/><title type='text'>Escape Sequences in Python</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;What are Escape Sequences?&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Escape&amp;nbsp; Sequences refers to the combination of characters that begin with the backslash(&lt;b&gt;\). &lt;/b&gt;They are non-printable characters which convey some special meaning to interpreter like to change a line , leave seven spaces etc.An escape sequence is used when writing sections of code, like preprocessors definitions, to specify continuation characters,so that multiple lines of codes are consider as a&amp;nbsp; single line by interpreter.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Escape&amp;nbsp; Sequences are basically used for designing purposes. They can be used between the statements. An escape sequence contains&amp;nbsp; more than one character but functions as a single character because there is no letter to textually represent escaped character.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;How to use Escape Sequences?&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The following is the list of some Escape sequences with the examples:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;\n&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;It is used to change the line. You can use it anywhere in the middle of statement.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg. &amp;gt;&amp;gt;&amp;gt; print(&quot;I am here .&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;\n&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;You must come here&quot;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Output:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;I am here.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;You must come here&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;\t&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;It is used to give a tab(seven spaces) in between two words in a single line.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg. &amp;gt;&amp;gt;&amp;gt; print(&quot;I am here .&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;\t&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;You must come here&quot;)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Output:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;I am here.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;You must come here&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;\\&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;It is used to print a backslash(\) or to ignore some escape&amp;nbsp; sequence.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg. &amp;gt;&amp;gt;&amp;gt; print(&quot;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;\\&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&quot;)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Output:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;\&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg. &amp;gt;&amp;gt;&amp;gt; print(&quot;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;\\t&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;got ignored&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&quot;)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Output:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;\t&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;got ignored&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg. &amp;gt;&amp;gt;&amp;gt; print(&quot;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;C:\Users\name\AppData\Local\&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;\t&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;estfile&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&quot;)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Output:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;C:\Users\name\AppData\Local&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;\t&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;estfile&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;\b&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;It is used to remove a character that is written previous to \b.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg. &amp;gt;&amp;gt;&amp;gt; print(&quot;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;Removing a characters&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;\b.&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&quot;)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Output:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;Removing a character.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;\f&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;Special character.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;eg.&amp;nbsp;&amp;gt;&amp;gt;&amp;gt;print(&quot;Hello World\f&quot;)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Output:&amp;nbsp;Hello World &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;\&#39;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;Prints a single quote &#39;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&lt;b&gt;eg.&amp;nbsp;&amp;gt;&amp;gt;&amp;gt;print(&quot; \&#39; &quot;)&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Output: &#39;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&lt;b&gt;We have seen some important escape sequences that we will be using.Some of the other escape sequences, we will be seeing in our next tutorials.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/8156168016767905435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/escape-sequences-in-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/8156168016767905435'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/8156168016767905435'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/escape-sequences-in-python.html' title='Escape Sequences in Python'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-7252593269365237116</id><published>2020-01-27T18:23:00.000+05:30</published><updated>2020-02-03T18:27:08.145+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics of python"/><title type='text'>Using Python as calculator and some operators</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Using Python as calculator&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Python has the very large number of libraries and each library has&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;its own&amp;nbsp; specific use. But before heading towards advance Python, we must be knowing the basics of it.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;What you have to do is to simply open your Python Console in pycharm and we are all set to go&lt;/b&gt;.&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; text-align: justify;&quot;&gt;In the Python Console as well as in our examples , input and output are distinguished by the presence or absence of prompts (&lt;/span&gt;&lt;a class=&quot;reference internal&quot; href=&quot;https://docs.python.org/3/glossary.html#term-0&quot; style=&quot;background-color: white; color: #6363bb; font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; text-align: justify; text-decoration-line: none;&quot;&gt;&lt;span class=&quot;xref std std-term&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; text-align: justify;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;a class=&quot;reference internal&quot; href=&quot;https://docs.python.org/3/glossary.html#term-1&quot; style=&quot;background-color: white; color: #6363bb; font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; text-align: justify; text-decoration-line: none;&quot;&gt;&lt;span class=&quot;xref std std-term&quot;&gt;…&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; text-align: justify;&quot;&gt;): to repeat the example, you must type everything after the prompt, when the prompt appears; lines that do not begin with the prompt are output from terminal .And we will be giving comments with #.&amp;nbsp;&lt;a href=&quot;https://python3programmingcourse.blogspot.com/2020/01/giving-comments-in-python-and-using.html&quot;&gt;Click here&lt;/a&gt;&amp;nbsp;to know more about comments.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; text-align: justify;&quot;&gt;Now, open your python console and wait for the prompt(&lt;/span&gt;&lt;/span&gt;&lt;a class=&quot;reference internal&quot; href=&quot;https://docs.python.org/3/glossary.html#term-0&quot; style=&quot;background-color: white; color: #6363bb; font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large; text-align: justify; text-decoration-line: none;&quot;&gt;&lt;span class=&quot;xref std std-term&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;) to appear.(It must not take too long to appear)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;eg.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large; text-align: justify;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;#Some basic operations&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;67+89&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&amp;nbsp; #&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;Input&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;156&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;#&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;Output&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;(659+567)/(456-345)*6&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&lt;span style=&quot;background-color: transparent; text-align: left;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;66.27027027027027&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;Ou&lt;/b&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;tput&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;Can also generate floating point output&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;# Now using /, // and % operators.&lt;/b&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;17/10&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&amp;nbsp; #&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;simple division operation&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.7&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;17//10&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&amp;nbsp; #&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;color: #222222; font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large; text-align: justify;&quot;&gt;// returns floor value(discard fractional part)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large; text-align: justify;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;1&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;color: #222222; font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;17%10&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&amp;nbsp; #&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;color: #222222; font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large;&quot;&gt;// return remainder&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;color: #222222; font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large; font-weight: bold;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;7&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;
&lt;div style=&quot;font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large; font-weight: bold;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large; font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;# Now using ** operators.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large; font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;17**2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&amp;nbsp; #&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222; font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large;&quot;&gt;return power of a number&lt;/b&gt;&lt;span style=&quot;font-weight: 400;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-weight: 400;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;1.7&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-weight: 400;&quot;&gt;
&lt;/span&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-weight: 400;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-weight: 400;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;# You can also give floating point numbers(Decimal numbers) as input .&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;18.0/2.0&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&amp;nbsp; #&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;return floating point number&lt;/b&gt;&lt;span style=&quot;font-weight: 400;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-weight: 400;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;9.0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-weight: 400;&quot;&gt;
&lt;/span&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-weight: 400;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-weight: 400;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;# You can also store numbers in a variable and then perform the same operations.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;a=2.0&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&amp;nbsp; #&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;assign 2.0 to a&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;b=3.0&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;assign 3.0 to b&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;a**b&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;calculating a to the power b&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;8.0&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;Output&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;# We can also do above operations in this way:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;a=2.0&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&amp;nbsp; #&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;assign 2.0 to a&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;b=3.0&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;assign 3.0 to b&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;c=&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;a**b&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;calculating a to the power b&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;c&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;↵&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;8.0&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;apple color emoji&amp;quot; , &amp;quot;noto color emoji&amp;quot;; font-size: 32px; text-align: left;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;Output&lt;/b&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;# An error will occur if you try to access undefined variables&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;k&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: transparent;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;Traceback (most recent call last):&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b style=&quot;background-color: transparent;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;
&lt;/span&gt;&lt;/b&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: transparent;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; File &quot;&amp;lt;input&amp;gt;&quot;, line 1, in &amp;lt;module&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b style=&quot;background-color: transparent;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;
&lt;div&gt;
NameError: name &#39;k&#39; is not defined&lt;/div&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: bold;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222; font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large;&quot;&gt;# We can also use floating point and integer number together&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: left;&quot;&gt;
&lt;b style=&quot;font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large; text-align: justify;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;8.0/3&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;2.6666666666665&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: justify;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: justify;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222; font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large;&quot;&gt;NOTE: Remember that we cannot use ++ or -- operators in python as they are not supported and when used throw an error&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small; font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large; font-weight: bold;&quot;&gt;
&lt;b style=&quot;background-color: transparent; color: #222222;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large; font-weight: bold;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: x-large; font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/7252593269365237116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/using-python-as-calculator-and-some.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/7252593269365237116'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/7252593269365237116'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/using-python-as-calculator-and-some.html' title='Using Python as calculator and some operators'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-7869911185730619521</id><published>2020-01-26T17:19:00.003+05:30</published><updated>2020-02-03T18:26:29.796+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics of python"/><title type='text'>Giving comments in python</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;What are Comments ?&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Comments are some statements or some expressions that we write for enhancing the readability of our code and making our program easier to understand.&lt;b&gt;&amp;nbsp;Python interpreter just simply ignore these comments and they doesn&#39;t become the part of program.&lt;/b&gt;&amp;nbsp;We can simply say that we write them for simplicity and clarity of code.So that we face no problem in understanding them in future and comments also help other people to easily understand your code.&lt;/span&gt;&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;How to give comments in python?&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;There are basically two types of comments :-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;1) &lt;u&gt;Single Line Comment&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; These are the comments which we give in a single line.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; These can&amp;nbsp; &amp;nbsp;be given by simply given by writing :&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; #&amp;nbsp; followed by the statement that you want to give&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg.&amp;nbsp; # I am a comment and python interpreter will definitely&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;ignore me&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg. &lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=5095460208592459938#editor/target=post;postID=187576577809224942;onPublishedMenu=allposts;onClosedMenu=allposts;postNum=2;src=postname&quot;&gt;print&lt;/a&gt;&lt;/b&gt;(&quot;This is the comments tutorial&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # I am a print statement&amp;nbsp; and this line will not affect your code&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;2) &lt;u&gt;Multi&amp;nbsp;Line Comment&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;If we want to give comments in multiple lines then instead&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;of using # in every line we can use&amp;nbsp; &#39;&#39;&#39;&amp;nbsp; &#39;&#39;&#39;&amp;nbsp; &amp;nbsp; &amp;nbsp;or&amp;nbsp; &quot;&quot;&quot; &quot;&quot;&quot;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;b&gt;eg. &#39;&#39;&#39; I am also a type of comment you can use me also .If&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; you got bored of using # then you can use me also &#39;&#39;&#39;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;eg.&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt; # This is a comment&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # given in more than&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # one line&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; print(&quot;We are giving single line comments.&quot;)&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;&#39;&#39;&#39;&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;font-size: large;&quot;&gt;This is a comment&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;given in more than&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;one line &#39;&#39;&#39;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; print(&quot;We are giving multi line comments.&quot;)&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Output:&amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;We are giving single line comments.&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; We are giving multi line comments.&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/7869911185730619521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/giving-comments-in-python-and-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/7869911185730619521'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/7869911185730619521'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/giving-comments-in-python-and-using.html' title='Giving comments in python'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-386734361359478398</id><published>2020-01-25T14:49:00.000+05:30</published><updated>2020-02-03T18:25:57.680+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics of python"/><title type='text'>Attributes of print statement  in python</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Python print() statement&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;In our previous tutorial we have seen how to use print() statement.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://python3programmingcourse.blogspot.com/2020/01/hello-world-creating-our-first-python.html&quot;&gt;Click here!&lt;/a&gt;&amp;nbsp;if you haven&#39;t seen that tutorial.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The full syntax of&lt;b&gt; print()&lt;/b&gt; statement is&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;print&lt;/b&gt;(&quot;&lt;b&gt;*&amp;nbsp;&lt;/b&gt;The statement to be printed&quot;,&lt;b&gt;sep&lt;/b&gt;=&quot;The separator you want to insert between words&quot;,&lt;b&gt;end&lt;/b&gt;=&quot;What you want to print at end of line&quot;, file=sys.stdout ,&lt;b&gt;flush&lt;/b&gt;=False)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Here,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;b&gt;* - &lt;/b&gt;Here * means that we can give&lt;b&gt;&amp;nbsp;more than one print statement separated by commas&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;sep -&amp;nbsp; &lt;/b&gt;Separators can be used when uou want to sepereate&amp;nbsp; Words by some specific character. &lt;b&gt;Default value of separator is &quot; &quot;&lt;/b&gt;(single space)&lt;/span&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;b&gt;end-&lt;/b&gt; It simply indicates that how do you want to end your line.&lt;b&gt;Default value of end=&quot;\n&quot;(leave a single line)&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; file-- &lt;/b&gt;We use this attribute to write something into a file.&lt;b&gt;&amp;nbsp;That&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;text will not be displayed in the terminal.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp;flush&lt;/b&gt;&amp;nbsp;-&amp;nbsp;decides whether to flush the stream or not. &lt;b&gt;Default Value=&quot;&lt;i&gt;False&lt;/i&gt;&quot;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Note: In python you can use both &quot; &quot;(double quotes) or &#39; &#39; (single quotes) they both convey the same meaning.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Examples:&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp; print&lt;/b&gt;(&quot;Where are you going?&quot;, &quot;I am going to the shop&quot;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; Output :&amp;nbsp;&amp;nbsp;&lt;/b&gt;Where are you going? I am going to the shop&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;gt;&amp;gt;&amp;gt;print&lt;/b&gt;(&quot;Where are you going?&quot;, &quot;I am going to the shop&quot;,sep=&quot;-&quot;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;Output :&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Where are you going?-I am going to the shop&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;b&gt;print(&lt;/b&gt;&quot;10&quot;,&quot;7&quot;,&quot;1965&quot;, sep=&quot;/&quot;&lt;b&gt;)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;Output :&amp;nbsp;&amp;nbsp;&lt;/b&gt;10/7/1965&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Notice that sep work on the values we assign to it. Default value of sep is &quot; &quot;(a single space).&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You can simply go to your pycharm terminal and can run these commands or you can create a separate&amp;nbsp; python file and run it&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print&lt;/b&gt;(&quot;Sun rises in east&quot;)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;print&lt;/b&gt;(&quot;and sets in west&quot;)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;Output :&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Sun rises in east&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and sets in west&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;eg.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print&lt;/b&gt;(&quot;Sun rises in east&quot;,end=&quot; &quot;)&lt;/div&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;print&lt;/b&gt;(&quot;and sets in west&quot;)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Output :&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Sun rises in east&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;and sets in west&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;eg.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print&lt;/b&gt;(&quot;Sun rises in east&quot;,end=&quot; and&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;print&lt;/b&gt;(&quot; sets in west&quot;)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Output :&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Sun rises in east&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;and sets in west&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Note: We will see &quot;file&quot; attribute of print() statement in upcoming tutorials after studying &quot;FILE HANDLING&quot;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/386734361359478398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/attributes-of-print-statement-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/386734361359478398'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/386734361359478398'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/attributes-of-print-statement-and.html' title='Attributes of print statement  in python'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-187576577809224942</id><published>2020-01-24T14:59:00.000+05:30</published><updated>2020-02-03T18:23:06.115+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics of python"/><title type='text'>Hello World : Creating our first python program </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;height: 0px;&quot;&gt;
&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;HELLO WORLD! Create first python program&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;In our previous tutorials we have seen the installation and setup of of Pycharm and IDLE&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;height: 0px;&quot;&gt;
Saying Hello World! to Python&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;height: 0px; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Now we will run our first program and see how to print hello world in python.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 1) &lt;/b&gt;Open your PyCharm Editor&amp;nbsp; and&amp;nbsp; click on &quot;Create New Project&quot;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj47F70OB-sNIl0leHLLGijQ34SUAABsZTUtZZ5jDybcwXxanQT5-oTn_nvtmOIUw-vPCFHH5dsDi1btc2Gc191noyR_SWciQOX_MX-GiZWiu3M5kMFO8roLKsrtnVCZ0q5W-uZgPcosmo/s1600/python2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;487&quot; data-original-width=&quot;779&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj47F70OB-sNIl0leHLLGijQ34SUAABsZTUtZZ5jDybcwXxanQT5-oTn_nvtmOIUw-vPCFHH5dsDi1btc2Gc191noyR_SWciQOX_MX-GiZWiu3M5kMFO8roLKsrtnVCZ0q5W-uZgPcosmo/s1600/python2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Step 2)&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;strong style=&quot;box-sizing: inherit; color: #222222; font-family: &amp;quot;Source Sans Pro&amp;quot;, Arial, sans-serif; line-height: inherit;&quot;&gt;&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;You will need to select a location.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol style=&quot;background-color: white; box-sizing: inherit; color: #222222; font-family: &amp;quot;Source Sans Pro&amp;quot;, Arial, sans-serif; margin-bottom: 1.5rem; margin-top: 1.5rem; padding-left: 1.5rem; text-align: left;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;You can select the location where you want the project to be created. If you don’t want to change location than keep it as it is but at least change the name from “untitled” to some other name .&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;PyCharm should have found the Python interpreter you installed earlier.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&amp;nbsp;Next Click the “Create” Button&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPI6XXZFylbpChWrLzvyqxZMfDSeztqrowN_HQzho8BH8HNMjd6Q6PgqShcuPTyxv1RY4F-fun_3FycVBsZ467ffo7eifnMDjxVm5P8vKu281MAv8bpEyLqSXsulsni4H8VyQ91Gp-5vw/s1600/python3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;577&quot; data-original-width=&quot;974&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPI6XXZFylbpChWrLzvyqxZMfDSeztqrowN_HQzho8BH8HNMjd6Q6PgqShcuPTyxv1RY4F-fun_3FycVBsZ467ffo7eifnMDjxVm5P8vKu281MAv8bpEyLqSXsulsni4H8VyQ91Gp-5vw/s1600/python3.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Step 3) &lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Now go to &quot;File&quot;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;menu. &lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Select &quot;New&quot;.Then select &quot;Python File&quot;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYuQxYoDSLzhCXZjOtDsxIfIdoEv8V8xP_BdDqYnss0cr3KSYNiNuPtDaiQyxhRzB-9rj_t9OW8o-8p5bp-ZXT7geFMQe3t09CnJV2v1zec2GfqEJ5yxw6difSvvLzbIZV1J2DEd0DfTM/s1600/python4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;911&quot; data-original-width=&quot;1175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYuQxYoDSLzhCXZjOtDsxIfIdoEv8V8xP_BdDqYnss0cr3KSYNiNuPtDaiQyxhRzB-9rj_t9OW8o-8p5bp-ZXT7geFMQe3t09CnJV2v1zec2GfqEJ5yxw6difSvvLzbIZV1J2DEd0DfTM/s1600/python4.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Step 4) &lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;A pop-up will appear ,write the name of your Python File and &lt;b&gt;hit enter.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Step 5)&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;Now type a simple program&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;print(&quot;Hello World&quot;)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;You can use &quot; &quot; as well as &#39; &#39; .In python they both have same meaning&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_YzAnN_-9csadlkOOeCt1Lu3z5jnSMNIWCw8ejlNv3fj-hMnpH8gOU_0yeDsEkMrTefSGpmbDUUO3-xKkCEjuLnhw0m3aHARxNBE0EYTfDHsWX9XdRiDhyphenhyphent1Odb107FHV6ktUFott7og/s1600/python5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;758&quot; data-original-width=&quot;1190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_YzAnN_-9csadlkOOeCt1Lu3z5jnSMNIWCw8ejlNv3fj-hMnpH8gOU_0yeDsEkMrTefSGpmbDUUO3-xKkCEjuLnhw0m3aHARxNBE0EYTfDHsWX9XdRiDhyphenhyphent1Odb107FHV6ktUFott7og/s1600/python5.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 6)&lt;/b&gt;&amp;nbsp;&lt;b&gt;&amp;nbsp;Click the&amp;nbsp; right mouse button.You will see a run option as seen in above image.Click the run option&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 7)&lt;/b&gt;&amp;nbsp; A terminal will be opened and &quot;Hello World &quot; will be printed as shown in the image&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpS2bMl2_TQPdsB1k1bWJgVRdBK_COKquQz6wCPN8yidl7N8KL1sPW_qF2BGAeX6hN2AvaEz3O30I1T6NGB_Ak_qwN-fuenjZ1FnAkZ5sc1JMKhHLLKUmuDpvtZ7_uvDwk000wytVpGwo/s1600/python7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;880&quot; data-original-width=&quot;1305&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpS2bMl2_TQPdsB1k1bWJgVRdBK_COKquQz6wCPN8yidl7N8KL1sPW_qF2BGAeX6hN2AvaEz3O30I1T6NGB_Ak_qwN-fuenjZ1FnAkZ5sc1JMKhHLLKUmuDpvtZ7_uvDwk000wytVpGwo/s1600/python7.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Congrats! We have successfully ran our first program. In our next blogs we will try other programs&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div style=&quot;height: 0px; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;height: 0px; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;height: 0px; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/187576577809224942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/hello-world-creating-our-first-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/187576577809224942'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/187576577809224942'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/hello-world-creating-our-first-python.html' title='Hello World : Creating our first python program '/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj47F70OB-sNIl0leHLLGijQ34SUAABsZTUtZZ5jDybcwXxanQT5-oTn_nvtmOIUw-vPCFHH5dsDi1btc2Gc191noyR_SWciQOX_MX-GiZWiu3M5kMFO8roLKsrtnVCZ0q5W-uZgPcosmo/s72-c/python2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-332906826962766786</id><published>2020-01-23T19:30:00.000+05:30</published><updated>2020-02-03T18:19:27.287+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics of python"/><title type='text'>Using pip in python and modules</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
What are packages?&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;A package contains all the files you need for a module.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;
&lt;span style=&quot;font-family: inherit; font-size: large;&quot;&gt;Modules are Python code libraries you can include in your project.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
What is pip?&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Pip is the package manager for Python .There are many packages that are built-in in python and need not to be installed. Some of the examples of packages that are in-built in python are&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;u style=&quot;font-style: italic; font-weight: bold;&quot;&gt;tkinter, random,&amp;nbsp;&lt;/u&gt;etc.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;But many modules are there which need to be downloaded and installed from outside sources. Some of those modules are&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;u style=&quot;font-style: italic; font-weight: bold;&quot;&gt;matplotlib, django, pandas,kiwi,pygame,&lt;/u&gt;&amp;nbsp;etc. To use these packages we need to install them .&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;How to use pip?&lt;/span&gt;&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp;1.If&amp;nbsp; you are using IDLE&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;Step 1)&amp;nbsp; &lt;/b&gt;Open the location where your python is installed.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If you haven&#39;t changed the default location of installing&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then this will be the location of&amp;nbsp; your IDLE.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;C:\Users\&lt;i&gt;Your Name&lt;/i&gt;\AppData\Local\Programs\Python\Python37\Scripts&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;Step 2)&amp;nbsp; &lt;/b&gt;Open Command Prompt and paste the location.Now try running the command(Please ensure that you have an active internet connection)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;u&gt;pip install&amp;nbsp; pandas&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;u&gt;Press Enter&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkyr_KQowDao6ieV-f6zYAgVMmdI53KdP76MSDe4I8bCVZ_fi95bj_xGadBSaPMl0_EGS0NU-hiPMINlIoHhyCAhP7jiAkKIy4xFLdbm2HVVgpVFl7RZojs6BYcJy7xmhe8rhuj6HA3nk/s1600/picture2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;221&quot; data-original-width=&quot;801&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkyr_KQowDao6ieV-f6zYAgVMmdI53KdP76MSDe4I8bCVZ_fi95bj_xGadBSaPMl0_EGS0NU-hiPMINlIoHhyCAhP7jiAkKIy4xFLdbm2HVVgpVFl7RZojs6BYcJy7xmhe8rhuj6HA3nk/s1600/picture2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;Step 3) &lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Successfully installed message will appear.Now you are all set.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuYWdnopW-qeiBIXhGxxTmFCXqnLN9Y9LEztU9bkkQ19XTO0lFd1PEDOQ40uPDvEo_21Kjm3qysmxK6HllbCv4Y1gXwkdspq6gXt17NKHUVk_ldLO97JOdoZG4_cZO-WvDlFHtMi_e0WM/s1600/picture3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;265&quot; data-original-width=&quot;1511&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuYWdnopW-qeiBIXhGxxTmFCXqnLN9Y9LEztU9bkkQ19XTO0lFd1PEDOQ40uPDvEo_21Kjm3qysmxK6HllbCv4Y1gXwkdspq6gXt17NKHUVk_ldLO97JOdoZG4_cZO-WvDlFHtMi_e0WM/s1600/picture3.png&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; 2.If&amp;nbsp; you are using PyCharm&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Using Pycharm , it is very easy to use pip and install packages.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;Just you have to open pycharm, go to the terminal and write the command&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;Try writing the command&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;u&gt;pip install&amp;nbsp; pandas&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBuEvp0mtwn_gPHp12OUppZdR2nY0mpy1NvOnw4S4IgBhn4oo-b4LcplW4YqljLi9Txef-pww6wb5TBvrpDaogwj0A4VbxV92n64ZV9achB-TRXEVyaRxbogfau4ygOqDPQMu09Z3rQwI/s1600/picture4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;555&quot; data-original-width=&quot;1492&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBuEvp0mtwn_gPHp12OUppZdR2nY0mpy1NvOnw4S4IgBhn4oo-b4LcplW4YqljLi9Txef-pww6wb5TBvrpDaogwj0A4VbxV92n64ZV9achB-TRXEVyaRxbogfau4ygOqDPQMu09Z3rQwI/s1600/picture4.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;Now you are all ready! Jet set go and code&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/332906826962766786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/using-pip-in-python-and-modules.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/332906826962766786'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/332906826962766786'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/using-pip-in-python-and-modules.html' title='Using pip in python and modules'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkyr_KQowDao6ieV-f6zYAgVMmdI53KdP76MSDe4I8bCVZ_fi95bj_xGadBSaPMl0_EGS0NU-hiPMINlIoHhyCAhP7jiAkKIy4xFLdbm2HVVgpVFl7RZojs6BYcJy7xmhe8rhuj6HA3nk/s72-c/picture2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5095460208592459938.post-6118154506999977294</id><published>2020-01-23T13:14:00.001+05:30</published><updated>2020-02-03T18:18:12.917+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Installation of Python"/><title type='text'>How to install python IDE ? IDLE and Pycharm</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
How to install Python IDE on Windows 10(Pycharm and IDLE)?&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Pycharm is the best Python IDE available.It comes with many in&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;-built features. We will discuss its shortcuts in our next blogs.Pycharm is a cross-platform editor developed by jetbrains.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Installing Python&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 1) &lt;/b&gt;Visit the official website of python or click the below link&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://www.python.org/downloads/&quot;&gt;https://www.python.org/downloads/&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 2) &lt;/b&gt;Click on Download Python&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRgi_OPW5hD1FY-6O1y2qk7dkZMM5Ntrla7uR69GkRQQ9bYWmS4aPRV4zmCww98Zd7ZeQ5jbX0MBIC8TTPi5iMl1pzZjRUUeysL_mlim-oCqgoLVKBi-FTEqjacr40hU73mIoydICHWKU/s1600/pythonpic1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;613&quot; data-original-width=&quot;1600&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRgi_OPW5hD1FY-6O1y2qk7dkZMM5Ntrla7uR69GkRQQ9bYWmS4aPRV4zmCww98Zd7ZeQ5jbX0MBIC8TTPi5iMl1pzZjRUUeysL_mlim-oCqgoLVKBi-FTEqjacr40hU73mIoydICHWKU/s1600/pythonpic1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 3) &lt;/b&gt;After the download is complete ,open the exe file and click&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;on Install now&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 4) &lt;/b&gt;After the successful installation it will show you a message&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;i&gt;Setup was successful&lt;/i&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 5) &lt;/b&gt;Now go to your windows search bar and type &quot;IDLE&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Press &lt;i&gt;Enter &lt;/i&gt;and you will see that idle is opened&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6pShKFGwejIttKVzxPNm8I4vs22YEkJViwqdLD333a5pvg6zE0LyKh2KW99dz-zlGt2q8LpwjpVEYrIev2rUECcHr4Rxys-3tiBajqrI3Lakjs2xcUf7IuYR006hkISYwQgICTdh7Eqo/s1600/pythonpic2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;849&quot; data-original-width=&quot;992&quot; height=&quot;546&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6pShKFGwejIttKVzxPNm8I4vs22YEkJViwqdLD333a5pvg6zE0LyKh2KW99dz-zlGt2q8LpwjpVEYrIev2rUECcHr4Rxys-3tiBajqrI3Lakjs2xcUf7IuYR006hkISYwQgICTdh7Eqo/s640/pythonpic2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Installing Pycharm&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 1) &lt;/b&gt;Go to the official website of Pycharm&amp;nbsp; or simply click the link given below&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;https://www.jetbrains.com/pycharm/download/#section=windows&quot;&gt;https://www.jetbrains.com/pycharm/download/#section=windows&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 2) &lt;/b&gt;If you are a beginner then download the community version as professional&amp;nbsp; version is paid. Click on download under community section.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiFmKEq9RAjYHcEWzOfxCHb0S2mv_SsUfEeGaMcocY7yGyGEdhCdTSXtkb9zeTuIdbk9oUDvPEt7erekHPVeZ6gDWse6W-FtMIFWuVp-_p2bqkl93PQHTc2TCFu4B4gFNyoCnupUFPzLg/s1600/pythonpic3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;734&quot; data-original-width=&quot;1600&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiFmKEq9RAjYHcEWzOfxCHb0S2mv_SsUfEeGaMcocY7yGyGEdhCdTSXtkb9zeTuIdbk9oUDvPEt7erekHPVeZ6gDWse6W-FtMIFWuVp-_p2bqkl93PQHTc2TCFu4B4gFNyoCnupUFPzLg/s640/pythonpic3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 3)&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Once the download is complete, run the exe for install PyCharm. The setup wizard should have started. Click “Next”.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Step 4) &lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Simply click on the next buttons until installation starts&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU6__tY_ZfLyP1Qip7C-SNjs1L1-oAju6bpgUaPrSM7O1r0wEfpvfPfZMMGWaN25aC8hohTG1-aNNSg9E7ihRrLiCDSBVxAZtw7xnho7blzfe1i9zor625TrvytUXxYgyUY8DX0_ndtIM/s1600/Python2.9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;388&quot; data-original-width=&quot;499&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU6__tY_ZfLyP1Qip7C-SNjs1L1-oAju6bpgUaPrSM7O1r0wEfpvfPfZMMGWaN25aC8hohTG1-aNNSg9E7ihRrLiCDSBVxAZtw7xnho7blzfe1i9zor625TrvytUXxYgyUY8DX0_ndtIM/s1600/Python2.9.png&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Step 5)&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;Once installation finished, you should receive a message screen that&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PyCharm is installed. If you want to go ahead and run it, click the “Run&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PyCharm Community Edition” box first and click “Finish”.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqoTMdg_opMG1jq-FHtKYHb9mNjpTa7Xkr2aO5BBXhb-vaQNMbvpwaZa7G_2zxidTW6V67bsrghWFFNmVBmIQcyY6AnQL2pow6H6w5xysDxu-JudMXNrR35WHjswNAt6osocSyEboohn8/s1600/Python2.11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;388&quot; data-original-width=&quot;499&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqoTMdg_opMG1jq-FHtKYHb9mNjpTa7Xkr2aO5BBXhb-vaQNMbvpwaZa7G_2zxidTW6V67bsrghWFFNmVBmIQcyY6AnQL2pow6H6w5xysDxu-JudMXNrR35WHjswNAt6osocSyEboohn8/s1600/Python2.11.png&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;
&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;Step 6) &lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Following screen will appear when you click on &quot;Finish&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcIOcV1PuRYfBnVzH_6q6RWEgNeyjxPxuNiIFBnIs5LT5HUOYbFrt20_5FO02aaIUsLvWilCq5AqeQuKa5vk801atGkrlUBFDU-eniX8Zm5i-Zcpy0wiztVJA2hzzjy3BNQq8QH-90-jY/s1600/Python2.last.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;487&quot; data-original-width=&quot;779&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcIOcV1PuRYfBnVzH_6q6RWEgNeyjxPxuNiIFBnIs5LT5HUOYbFrt20_5FO02aaIUsLvWilCq5AqeQuKa5vk801atGkrlUBFDU-eniX8Zm5i-Zcpy0wiztVJA2hzzjy3BNQq8QH-90-jY/s1600/Python2.last.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;source sans pro&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://python3programmingcourse.blogspot.com/feeds/6118154506999977294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/how-to-install-python-ide-idle-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/6118154506999977294'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5095460208592459938/posts/default/6118154506999977294'/><link rel='alternate' type='text/html' href='https://python3programmingcourse.blogspot.com/2020/01/how-to-install-python-ide-idle-and.html' title='How to install python IDE ? IDLE and Pycharm'/><author><name>Python Hub</name><uri>http://www.blogger.com/profile/17962623278922375057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='16' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEbT5I7PjDOglE20quMj0MFWrETQwH6s4LIBMUBer9aywFej7HFQN6iS-n9lWNJv2P7R1Q6I0bgejJOzZLbjRNxBFk8_-PGpeInOrsroGhnEKOBrAs6Gk26ZYZdrtEWA/s150/download+%281%29.jfif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRgi_OPW5hD1FY-6O1y2qk7dkZMM5Ntrla7uR69GkRQQ9bYWmS4aPRV4zmCww98Zd7ZeQ5jbX0MBIC8TTPi5iMl1pzZjRUUeysL_mlim-oCqgoLVKBi-FTEqjacr40hU73mIoydICHWKU/s72-c/pythonpic1.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>