Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at How to use String in Python. It's our 3rd tutorial in Python series. We have discussed strings in our previous lecture How to use Data Types in Python.
String is a most commonly used data type in python that's why I have created a separate lecture on it. Python has many built-in string operations, which we will discuss today in detail. So, let's get started with String in Python:
How to use String in Python
String Data Type is used to store or collect one or more characters or sequence of characters, we can place any alphanumerical or special character in a string.
Let's create a string in python, it has a simple syntax, as shown below:
first_var = "He ...
Hello friends, I hope you all are doing well. Welcome to the 9th tutorial of our Raspberry Pi programming course. In the last chapter, we generated a PWM signal from our Raspberry Pi to control the brightness of an LED. We also studied different functions used in Python to perform PWM. In this chapter, we'll get a bit advanced with PWM and use it to control the speed and direction of a DC motor with the help of a motor driver IC.
To control the speed & direction of the DC Motor, we will:
Design a Circuit Diagram.Write Python code.
Components RequiredWe will use the following components to control the DC motor speed:
Raspberry Pi 4.DC Motor.Motor driver IC(L293D).Breadboard.
Jumper wires.
Controlling DC Motor speed wi ...
Hello everyone! I hope you all will be absolutely fine and having fun. Today, I am going to share my knowledge about Introduction to LM339. LM339 belongs to the family of devices having 4 independent voltage comparators. Each comparator is designed in such a way that it is capable of operating from a single power source over a wide range of power supplies. It can also operate for split power supplies. There is a unique characteristic of comparators, Input Common-Mode Voltage Range (ICMR) includes a ground even when it is operating from a single power supply voltage.
Basically, LM339 is a comparator IC having four built-in comparators. The basic purpose of a comparator is to rotate the signal between analog and digital domains. At its input termina ...
Hey peeps! Welcome to the Engineering Projects where you are learning the basics of Python in detail. We are working a lot with the arrays as these are important concepts in most of the high-level programming languages till now, the numeric data was used in the arrays but for our practice, we are moving towards the next step where the focus will be on the string data type. The practice is done on the Jupyter notebook and every step is going to be explained well without skipping any concepts but to keep things easy, we are not emphasising unnecessary details and concepts. So, before going deep into the topic, have a look at the list of the contents that will be discussed in this lecture:
What are the strings?
How do we use the string in arrays?
What is the list?
How do we extract the ch ...
Hello Readers! Today we'll talk about the , maintenance of water heater. To ensure that your home's heating system runs smoothly, you require multiple pieces of equipment. A water heater is of the most importance. Every household needs a water heater for numerous external and internal needs, such as the uninterrupted flow of warm water in the winters, washing tough stains off clothes, and sometimes cleaning and disinfecting surfaces with a mixture of warm water and antioxidants.
Since multiple parts of a water heater tank are in regular use, wear and tear are unavoidable. To ensure that your water heater lasts longer and continues to operate smoothly, read on. This article will take you through a heater's series of components, discussing a checkli ...
In today's digital age, where financial transactions are increasingly conducted online, cybersecurity has become a paramount concern for traders and investors. The advent of technology has revolutionized the trading landscape, offering convenience, speed, and accessibility like never before. However, it has also opened the door to a host of cyber threats and vulnerabilities that can jeopardize your financial assets. In this blog post, we will delve into the importance of cybersecurity in trading and explore strategies to protect your assets in this digital world.
The Digital Transformation of Trading
Trading has come a long way from the days of shouting on the trading floor. With the rise of the internet and sophisticated trading platforms, individuals and institutions can now execut ...
Hello Learners! We hope you are fine. Welcome to The Engineering Projects. The Automatic Light Detector is the device that automatically senses the light incident on it. Let's have a glance about the main points of discussion:
What is Automatic Light Detector?
What are different components and their functions in the Automatic Light Detector?
How does the circuit of Automatic Light Detector works?
How can we implement the circuit of Automatic Light Detector in Proteus ISIS?
Moreover, you'll have some chunks of interesting information in DID YOU KNOW sections.
Automatic Light Detector
Automatic Light detectors or automatic Light sensors are interesting devices. They have special mechanism in their circuit that senses the density of the ligh ...
In today's digital age, where technology is an integral part of our daily lives, it's crucial to be aware of the various cybersecurity threats and take appropriate measures to protect ourselves.
While many people are familiar with the more well-known threats like phishing scams and malware, several commonly overlooked cybersecurity risks can have significant consequences. In this article, we will explore these threats and provide insights on how to overcome them.
What are the most important threats that we cannot afford to ignore?
One of the commonly overlooked cybersecurity threats is the vulnerability of public Wi-Fi networks. In an increasingly connected world, we often rely on public Wi-Fi hotspots in cafes, airports, and other public pl ...
Hello friends! I hope you all will be absolutely fine and having fun. Today, I am going to share my knowledge with all of you about how to make a simple program for DC Motor Direction Control using Arduino. The word DC is basically an abbreviation of Direct current. So, a direct current motor is commonly used motor having two input terminals, one is positive and the other one is negative. If we connect these terminals with the voltage supply the motor will rotate. If you change the polarity then motor will rotate in opposite direction. You should also have a look at Difference between DC & AC Motors to get a better idea about these motors.
DC motor has a lot of applications. You can use it in automation projects, for controlling static as wel ...
Hi Friends! Happy to see you around. Thank you for clicking this read. In this post today, I’ll walk you through the Top 10 Workflow Automation Software.
Running a business is not an easy job. It requires a lot of deliberate effort and careful attention to run business processes successfully. Some tasks involved are repetitive and time-consuming, making it difficult for you to do them manually. This is where workflow automation comes in handy that doesn’t require human intervention and can be used to effectively manage and execute business processes.
Curious to know about Top 10 workflow automation software?
Scroll on.
Top 10 Workflow Automation Software
Workflow is a process that requires a lot of steps to be completed in a sequential manner. Th ...