


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These are the Letcure Slides of Computer Literacy which includes Main Program and Functions, Comparing Python, Output of Vowels, While Loops, Damage Device, Public Static Double, Opening Configuration, Image Processing, Internal Board etc. Key important points are: Computational Thinking, Algorithm for Solving Problem, Set of Instructions, Finite Amount of Time, Stepwise Refinement, Algorithm in Python, Control Flow, Designing Algorithm, Class of Algorithms
Typology: Slides
1 / 34
This page cannot be seen from the preview
Don't miss anything!



























def average(numbers): sum = 0 for num in numbers: sum = sum + num
return(sum//len(numbers))
def average(numbers): try: sum = 0 for num in numbers: sum = sum + num
return(sum//len(numbers)) except: print("Only defined for list of numbers") return(0)
def chess(board): while game_on: internal_board = scan(board) move = choose(internal_board) play(move, board)
def chess(board): while game_on: internal_board = scan(board) move = choose(internal_board) play(move, board)
def chess(board): while game_on: internal_board = scan(board) move = choose(internal_board) play(move, board)
def chess(board): try: while game_on: internal_board = scan(board) move = choose(internal_board) play(move, board) except: print("Must start with a valid board")
def chess(board): while game_on: internal_board = scan(board) move = choose(internal_board) play(move, board)