Skip to content

Instantly share code, notes, and snippets.

@Robofied
Created February 3, 2019 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Robofied/7dc8c04cd38d8b6309fa5d715e942c21 to your computer and use it in GitHub Desktop.
Save Robofied/7dc8c04cd38d8b6309fa5d715e942c21 to your computer and use it in GitHub Desktop.
## List of multiple students
l = [('Ram',80,90),('seeta',50,30),('Jerry',20,45),('Bellow',60,70),('Geeta',98,78)]
## For checking the marks ## iterating over list
## First unzipping each element as it is stored as a tuple.
## If you don't know this concept don't worry will cover this in intermediate python.
## Here just for your understanding how useful to define a function
for e in l:
student(*e)
#[Output]:
# Ram is very good student with marks 85
# seeta needs improvement 40
# Jerry needs improvement 32
# Bellow is average student with marks 65
# Geeta is very good student with marks 88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment