Why do I get ValueError: Too many values to unpack, when I run this code?

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Why do I get ValueError: Too many values to unpack, when I run this code?

Post by answerhappygod »

Why do I get ValueError: Too many values to unpack, when I run
this code?
Why Do I Get Valueerror Too Many Values To Unpack When I Run This Code 1
Why Do I Get Valueerror Too Many Values To Unpack When I Run This Code 1 (16.41 KiB) Viewed 29 times
"GE0124") import itertools import re Emner = ["INF0100", "INF0104", "INF0125", "ECON100", "ECON110", "ECON218", "GE0100", "GE0113", Karakterer = {"INF0100":"C", "INF0104":"B", "ECON100":"A", "GE0100":"0"} def emneliste(): global Emner global karakterer emne, kar = zip(*Karakterer) ans = [list(filter(None, i)) for i in itertools.zip_longest (emne, kar)] print(ans) 1
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply