Python Question / Quiz; What is the output of the following Python code, and why? 🤔🚀 Comment your answers below! 👇 #python #programming #developer #programmer #coding #coder #softwaredeveloper #computerscience #webdev #webdeveloper #webdevelopment #pythonprogramming

Python_Dv's tweet image. Python Question / Quiz;

What is the output of the following Python code, and why? 🤔🚀 Comment your answers below! 👇

#python #programming #developer #programmer #coding #coder #softwaredeveloper #computerscience #webdev #webdeveloper #webdevelopment #pythonprogramming…

C. Error (TypeError) Strings are immutable. You can't change individual characters. For beginners: › text[1] = 'i' fails › text = text[:1] + 'i' + text[2:] works › text = text.replace('e', 'i', 1) works To modify strings, create a new one!


Learn any language for free with Grok Voice mode.


c) is the answer coz except lists and dictionary, everything is immutable in Python


The answer is (C) First of all 'text' is a string which is immutable (can't be changed after declaring.) Second, 'text[1]' will expect a list which will also through an error.


Strings are immutable, so you cannot change a character of a string like that. Answer C) Error


Error Strings are immutable


Lock and load, agents! Your favorite Spike-runners are ready to jump onto your walls. Prep your loadout for the new official VALORANT collection ➤


A)hillo


Error String is immutable


@grok what is the answer


@ grok is the answer A ?


Stream, call, game, and work in even the most remote locations. Order online in minutes


United States Trends
Loading...

Something went wrong.


Something went wrong.