Programming In Python Problem Sheet Page 2

ADVERTISEMENT

Programming in Python - problem sheet
2
(b) Find duplicates in a list of
numbers
Input
1
==
+ 1,
Yes
+ 1
and
duplicate
= 0
?
No
No
No
==
?
==
?
Yes
Yes
Finished
(c) Guess a number
between 1 and
. Each time the program makes a guess
, it can test whether it is larger, smaller or equal to
.
= 1,
Yes
==
?
Answer
find
( + ) 2
=
No
Yes
?
No

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 2