ARTICLE AD BOX
GIven a task and this is where im currently stuck:
either there is a mistake somewhere in the question or im too dumb. This task came with the midterm test i took yesterday. "There is nothing complicated and i made it only for beginner level python learners" - as my teacher said(yea sure no doubt).
it could be better if u guys give me hints and point out where am i going wrong instead of giving out the whole thing, i would have just gone to ask chatgpt but i feel like im near solving it so yea that is why im here
name = input('ur name: ') age = int(input('ur age: ')) course = int(input('ur course: ')) univ = input('ur uni: ') student = [ ('adam', {1,2,3}), ('john', {4,5,6,7}), ('alan', {8,9,10,11}) ] student.append((name, {age, course})) data = [] nums = set() for i, z in student: if 'a' in i: data.append(i) for n in z: if n % 2 == 0: nums.add(n) for i in nums: i *= 4 data.append(i) print(data)