Mar-25-2019, 09:49 AM
Here i created a function main where i have a list of tuple which store 'Science', 'Math', 'Computer' but when i call the function in line 5 it doesn't print out the tuple but the compilation went without any error.
#!usr/bin/python
def main():
tup = ('Science', 'Math', 'Computer')
print(sorted(tup))
if __name__=='main':
main()why does the print function doesn't print out the tuple?
