Computer Science, asked by gayathrizz0210, 5 months ago

python program to acquire marks for a student (out of 100). The program should display Pass if marks are greater or equal to 33 or else should display Fail.
please fast!!

Answers

Answered by valeriy69
1

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

from random import choice

nums = [x for x in range(0, 101)]

marks = {

"Maths": choice(nums),

"Science": choice(nums),

"Social Science": choice(nums),

"English": choice(nums),

"French": choice(nums),

"ICT": choice(nums)

}

for k, v in marks.items():

if v >= 33:

print(f"{k}: PASS")

else:

print(f"{k}: FAIL")

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

Answered by Anonymous
3

Answer:

from random import choice

nums = [x for x in range(0, 101)]

marks = {

"Maths": choice(nums),

"Science": choice(nums),

"Social Science": choice(nums),

"English": choice(nums),

"French": choice(nums),

"ICT": choice(nums)

}

for k, v in marks.items():

if v >= 33:

print(f"{k}: PASS")

else:

print(f"{k}: FAIL")

Similar questions