Python Question

HomeBadges

Python Interview Questions

Jan 25, 202130 min read

Python Interview Questions Q. How can you improve the following code? import string i = 0 for letter in string.letters: print("The letter at index %i is %s" % (i, letter)) i = i + 1 Bonus points for mentioning enumerate and use of str.forma...

© 2021 Python Question

PrivacyTerms
Proudly part of