repl.it
@SamWhite3/

Smart Computer v1

Python

No description

fork
loading
Files
  • main.py
main.py
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
firstname=input("What is your name?")
surname=input("Okay, and what is your surname?")
if firstname=="Sam" and surname =="White":
  print ("What an awesome name!")
if firstname=="Simon" and surname =="White":
  print ("Oh, hey Dad!")
if firstname=="Charlotte" and surname =="White":
  print ("Oh, hey Mum!")

yoursubject = input("What is your favourite subject")

if yoursubject == "Tech":
  print("Cool Subject!")

if yoursubject == "Science":
  print("Awesome!")

if yoursubject == "Art":
  print("Thats nice!")

if yoursubject == "Maths":
  print("Oh no, thats not good!")

if yoursubject == "History":
  print("Poor you!")

else:
  print("Oh, well - at least it isn't History!")