dictionary = {1:"a"} def func(inputDict: dict): return inputDict[1] def func2(inputStr: str): inputStr = "b" func2(func(dictionary)) print(dictionary[1])
how do I get this to print b?
submitted by /u/SpacefaringBanana
[link] [comments]
r/learnpython dictionary = {1:”a”} def func(inputDict: dict): return inputDict[1] def func2(inputStr: str): inputStr = “b” func2(func(dictionary)) print(dictionary[1]) how do I get this to print b? submitted by /u/SpacefaringBanana [link] [comments]
dictionary = {1:"a"} def func(inputDict: dict): return inputDict[1] def func2(inputStr: str): inputStr = "b" func2(func(dictionary)) print(dictionary[1])
how do I get this to print b?
submitted by /u/SpacefaringBanana
[link] [comments]