forked from Akuli/python-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
87 lines (77 loc) · 1.59 KB
/
test.py
File metadata and controls
87 lines (77 loc) · 1.59 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# BASICS
# a = 1
# a = a + 1
# b = a
# print(a)
#
# print("hello" * 3)
#
# print(a == 2)
#
# empty = None
# print(empty)
#
# # None()
#
# print(not a)
#
# print(1 == 1 and 2 == 2)
# FUNCTIONS
# user_number = input("Enter a number: ")
# print(user_number)
# print("Hello", "World")
# IF ELSE AND ELIF
# its_raining = True
# if its_raining:
# print("It's raining!")
# its_raining = False
# if its_raining:
# print("It's raining!")
# if its_raining:
# print("It's raining!")
# else:
# print("It's not raining.")
#
# print("Hello!")
# password = input("Enter the correct password: ")
#
# if password == "password":
# print("Welcome, Sir.")
# else:
# print("Wrong password.")
#
# print("Hello!")
# word = input("Enter something: ")
#
# if word == "hi":
# print("Hi to you too!")
# elif word == "hello":
# print("Hello hello!")
# Exercise
# print("Hello!")
# something = input('Enter something: ')
# print('You entered:', something)
#
# print('Hello!')
# something = input("Enter something: ")
# if something == 'hello':
# print("Hello for you too!")
#
# elif something == 'hi':
# print('Hi there!')
# else:
# print("I don't know what,", something, "means.")
# user_input = input("Enter a word and I'll repeat it 1000 times: ")
# user_input += " "
# print(user_input * 1000)
#
# two_words = input("Enter two words: ")
# two_words += " "
# print(two_words * 1000)
password_checker = input("Please enter the correct password: ")
if password_checker == "Password":
print("Welcome!")
elif password_checker == "":
print("You didn't enter anything")
else:
print("Access denied")