A Day Computer Science Manzoor Due 2:30 PM


IMPORTANT MESSAGE
************************************************
FINAL TERM EXAMINE WILL BE TAKEN IN THREE PARTS BETWEEN (MAY 26 to 28)
PART 1: VOCABULARY TERMS
PART 2: PROGRAMMING CODES

Q1. The errors in the program are called:
Syntax
Bugs
Mistakes
Debugging

Q2. _____________ is the process of translating source code into machine code is called:
Compiling
Executing
Linking
Debugging


Python Programming Question:
Q3. Write a program that takes 10 numbers from users and displays the smallest number among them.
Hint: min() function
See https://beginnersbook.com/2019/06/python-program-to-find-smallest-number-in-a-list/
# creating empty list
lis = []

# user enters the number of elements to put in list

count=10

# iterating till count to append all input elements in list
for n in range(count):
    number = int(input('Enter number: '))
    lis.append(number)

# displaying smallest element
print("Smallest element of the list is :", min(lis))

Comments

Popular posts from this blog

Computer Science Manzoor Do Now Due 250 PM

Bday Math Pre-Calc M. Mui Pecentage increase/decrease do now Class: Jeopardy due 2:30 Pm

A Day English Due 2:30 PM DL-Do NowCareer Research- Ms.Casella