How would I get something like this to work? /u/SpacefaringBanana Python Education

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] 

Leave a Reply

Your email address will not be published. Required fields are marked *