So if I assigned a to a string with the character b in it, how do I get the character from the a string and use it to assign it to another value?
I tried:
a = "b"
a.strip("") = 2
# so that b = 2
print(b)
>> 2
So if I assigned a to a string with the character b in it, how do I get the character from the a string and use it to assign it to another value?
I tried:
a = "b"
a.strip("") = 2
# so that b = 2
print(b)
>> 2