Computer Science, asked by shrishs, 4 months ago

Write a Python Program to :
1) To display the first 7 multiples of 35.
2) Find the sum of the first 10 natural numbers.
3) Accept the marks of 5 subjects from the user as float values and find the average of these marks.
All in Python IDLE. Please answer these questions fast.

Answers

Answered by BrainlyProgrammer
12

Answer 1:

  \small\# \sf python \: program \: to \: print \: first \: 7 \: multiples \: of \: 35

 \sf \: for \: i \: in \: range(1,36,1) \colon

  \:  \: \:  \: \sf  print("7 \times " ,i  ," = ",(7*i))

____________

Answer 2:

  \small\# \sf python \: program \: to \: sum \: of  \: the  \: first \:  10  \: natural \:  numbers.

s = 0

 \sf \: for \: i \: in \: range(1,11,1) \colon

  \:  \: \:  \: \sf  s +  = i

 \sf \: print(s)

______

Answer 3:

 \sf \: i,avg=0,0

 \sf \: print("Enter \: marks \: of \: 5 \: subjects")

 \sf \: for \: i \: in \:  range(1,6,1):

 \sf \:  \:  \:  \: m=(float)(in put())

 \sf \:  \:  \:  \: avg+=m

 \sf \: print(avg//5)

_____

•Output Attached.

Attachments:
Similar questions