Computer Science, asked by ruanasri7, 4 months ago

Write a python program that accepts Names and two Marks for each student and store them in dictionary format and print it.(Assume there are N-Students)


answer it fast plssssss

Answers

Answered by jai696
0

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

students = int(input("no of students: "))

student_obj = {}

for n in range(students):

name = input(f"enter name_{n}: ")

marks = [float(n) for n in input("enter marks: ").split()]

print()

student_obj[name] = marks

print(student_obj)

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions