-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path3.1.1.4Lab.py
More file actions
50 lines (31 loc) · 856 Bytes
/
Copy path3.1.1.4Lab.py
File metadata and controls
50 lines (31 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
'''
Estimated time
5-10 minutes
Level of difficulty
Very Easy
Objectives
becoming familiar with the the input() function;
becoming familiar with comparison operators in Python.
Scenario
Using one of the comparison operators in Python, write a simple two-line program
that takes the parameter n as input, which is an integer, and prints False if n is
less than 100, and True if n is greater than or equal to 100.
Don't create any if blocks (we're going to talk about them very soon). Test your code
using the data we've provided for you.
Test Data
Sample input: 55
Expected output: False
Sample input: 99
Expected output: False
Sample input: 100
Expected output: True
Sample input: 101
Expected output: True
Sample input: -5
Expected output: False
Sample input: +123
Expected output: True
'''
# solution
n = int(input())
print(n >= 100)