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

B day Urbankowski.United States History II B 4-5 Due 2:30 PM DL-FinalExam-BP2DoNow+Classwork

Due 4:30 PM *Welcoming* Wednesday N Tabor Wednesday's theme Welcoming Wednesday.

ELA Do Now by 2:30 pm Quote citations Classwork pp. 61-100 start get some in today finish Wed. Ms. Casella