+ 1

Can we make a school report card by lists in python?? I mean how to make row and column

Strength of list

16th Oct 2020, 3:26 PM
Suraj
Suraj - avatar
6 Respostas
16th Oct 2020, 4:14 PM
Petr
+ 2
Yes but you can use something like pandas DataFrame method to do what you want, easily https://www.geeksforgeeks.org/JUMP_LINK__&&__python__&&__JUMP_LINK-pandas-dataframe/
16th Oct 2020, 3:53 PM
Abhay
Abhay - avatar
+ 2
Thnx bro
16th Oct 2020, 3:59 PM
Suraj
Suraj - avatar
+ 2
Dictionary is suitable for storing data for such stuffs: dict = { Roll No : [ "Name", "Class" ... ] } For the output (in IDLE) you can use string formatting to make it look like table: print ( f"{ Name : < 10} | { Class : < 5 } | ..." )
16th Oct 2020, 4:06 PM
abhinav
abhinav - avatar
+ 2
Thanks peter
16th Oct 2020, 4:16 PM
Suraj
Suraj - avatar
0
in ideal way: 1.You should store data in sql db, not in lists 2. want to show them in table better use tkinter: listbox
16th Oct 2020, 5:01 PM
Shadoff
Shadoff - avatar