├── README.md └── working.py /README.md: -------------------------------------------------------------------------------- 1 | # ExcelPythonTutorial 2 | 3 | # 💻 Launch Your Software Development Career Today! 4 | 5 | 🎓 **No degree? No problem!** My program equips you with everything you need to break into tech and land an entry-level software development role. 6 | 7 | 🚀 **Why Join?** 8 | - 💼 **$70k+ starting salary potential** 9 | - 🕐 **Self-paced:** Complete on your own time 10 | - 🤑 **Affordable:** Low risk compared to expensive bootcamps or degrees 11 | - 🎯 **45,000+ job openings** in the market 12 | 13 | 👉 **[Start your journey today!](https://techwithtim.net/dev)** 14 | No experience needed—just your determination. Future-proof your career and unlock six-figure potential like many of our students have! 15 | -------------------------------------------------------------------------------- /working.py: -------------------------------------------------------------------------------- 1 | from openpyxl import Workbook, load_workbook 2 | from openpyxl.utils import get_column_letter 3 | from openpyxl.styles import Font 4 | 5 | data = { 6 | "Joe": { 7 | "math": 65, 8 | "science": 78, 9 | "english": 98, 10 | "gym": 89 11 | }, 12 | "Bill": { 13 | "math": 55, 14 | "science": 72, 15 | "english": 87, 16 | "gym": 95 17 | }, 18 | "Tim": { 19 | "math": 100, 20 | "science": 45, 21 | "english": 75, 22 | "gym": 92 23 | }, 24 | "Sally": { 25 | "math": 30, 26 | "science": 25, 27 | "english": 45, 28 | "gym": 100 29 | }, 30 | "Jane": { 31 | "math": 100, 32 | "science": 100, 33 | "english": 100, 34 | "gym": 60 35 | } 36 | } 37 | 38 | wb = Workbook() 39 | ws = wb.active 40 | ws.title = "Grades" 41 | 42 | headings = ['Name'] + list(data['Joe'].keys()) 43 | ws.append(headings) 44 | 45 | for person in data: 46 | grades = list(data[person].values()) 47 | ws.append([person] + grades) 48 | 49 | for col in range(2, len(data['Joe']) + 2): 50 | char = get_column_letter(col) 51 | ws[char + "7"] = f"=SUM({char + '2'}:{char + '6'})/{len(data)}" 52 | 53 | for col in range(1, 6): 54 | ws[get_column_letter(col) + '1'].font = Font(bold=True, color="0099CCFF") 55 | 56 | wb.save("NewGrades.xlsx") --------------------------------------------------------------------------------