how should i take three valuables and print them in this block?

Use indexing

for raw in marks:
    pass_mark=raw[0]
    defer_mark=raw[1]
    fail_mark=raw[2]
    print(pass_mark,defer_mark,fail_mark)

If you want short code, you can use this:

for raw in marks:
   print(*raw)   # pass list as args

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top