Posts

Showing posts from July, 2021

π•Ύπ–™π–—π–Žπ–“π–Œπ–˜ π–Žπ–“ π–•π–žπ–™π–π–”π–“ π–•π–—π–”π–Œπ–—π–†π–’π–’π–Žπ–“π–Œ

Image
π™Žπ™π™π™„π™‰π™‚π™Ž            Strings in python are surrounded by either single quotes or double quotes. You can display a string literally with the print()  function.  𝙀𝙭𝙖𝙒π™₯π™‘π™š :  π™Šπ™ͺ𝙩π™₯π™ͺ𝙩 :  π˜Όπ™Žπ™Žπ™„𝙂𝙉 𝘼 π™Žπ™π™π™„π™‰π™‚π™Ž π™π™Š 𝘼 π™‘π˜Όπ™π™„π˜Όπ˜½π™‡π™€π™Ž :                    Assigning a string to a variable is done with the variable name followed by an equal sign and the string.  𝙀𝙭𝙖𝙒π™₯π™‘π™š :  π™Šπ™ͺ𝙩π™₯π™ͺ𝙩: π™ˆπ™π™‡π™π™„π™‡π™„π™‰π™€ π™Žπ™π™π™„π™‰π™‚π™Ž :                     You can assign a multiline string to a variable by using three quotes :  π™€π™“π˜Όπ™ˆπ™‹π™‡π™€ :  π™Šπ™ͺ𝙩π™₯π™ͺ𝙩 :  π™Žπ™π™π™„π™‰π™‚ π™π™π™‰π˜Ύπ™π™„π™Šπ™‰π™Ž :  ✔ π™žπ™£π™™π™šπ™­()               index()  returns the position where it was found.  π™€π™“π˜Όπ™ˆπ™‹π™‡π™€ :   π™Šπ™ͺ𝙩π™₯π™ͺ𝙩 :  ✔ π˜Ύπ™€π™ͺ𝙣𝙩()  ...