[Tutor] Question about code readability and good coding practise
Manprit Singh
manpritsinghece at gmail.com
Sun Feb 7 00:25:20 EST 2021
Dear Sir ,
Just need your suggestions :
Consider a problem where I have to make a program that allows the user to
give integer inputs 10 times from the keyboard and then put all these 10
integers into a python list.
Writing like this would be considered readable and good code ?
var = [int(input("Enter number")) for i in range(10)]
regards
Manprit Singh
More information about the Tutor
mailing list