Ahnaf Tahmid Zamanahnaftahmidzaman.hashnode.dev·Sep 29, 2024Understanding String Comparison in Python: Why 'hello' <= 'hi' is TrueWhen working with strings in Python, you might encounter unexpected results, especially when comparing strings. One such example is the expression: 'hello' <= 'hi' # True At first glance, it seems counterintuitive. How can a longer string ('hello')...String Comparison
AQIB HAFEEZaqibhafeez473.hashnode.dev·Oct 22, 2023Day-2 | Data Types | Strings | String Handling FunctionsWelcome to Day 2 in this article I learned data types and string built-in functions in Python with examples. Data Types in Python Data types are the foundation of every program. They define the kind of data a variable can hold. There are various data...pythonautomation
Victoria Burabari Poromonburah.hashnode.dev·Jul 31, 2023How Strings Work In PythonA string is a sequence of characters. They are widely used in different applications to store and manipulate data and represent names, addresses, and other kinds of data that can be represented. Strings in Python are immutable; the value is fixed. Th...11 likes·133 readsPython SeriesPython
Fridahfridah.hashnode.dev·Jun 15, 2023Reversing a String In Python Using RecursionHere's a step-by-step breakdown of how the function works: The function reversing_string() takes a string as input. It checks if the input string is empty (""). If it is, an empty string is returned as the base case of the recursion. If the input ...27 readsPython
Satyam Aadityablog.satyamaaditya.com·Apr 20, 2023Python StringStrings are an essential part of Python programming. A string is a sequence of characters enclosed in single or double quotes. In this article, we will explore Python strings in detail. Creating a String You can create a string by enclosing a sequenc...Learn PythonPython