repl.it
@ThinOldGoose/

Python intro

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
30
31
32
33
34
35
#Can you see this?
#Yes

#Print "Hello"
print("Hello")

#Save some text to a variable, then print using that variable
a = "always"
print(a)

#Save text to multiple variables, then print them all.\
b = "be"
c = "curious"
print(a, b, c)

# Use the input function to ask the user's name, then say hi to them.
# variable = input("prompt")
name = input("What's your name: ")
print("hi", name, "How are you doing?????????")

good_true = input("good or bad?: ")
if (good_true == "bad"):
    print("It's ok")
if (good_true == "good"):
    print("HOORAY!!!!!!!!!!!!!!!")

# example = "I put a {} in {} and it was {}."
# print(example.format("banana", " Issac Newton's head", "amazing"))
var = "My name is {} and I am {} and I am very very {}"
print(var.format("Bartholemeu", "tall", "hungry and annoying"))

#Let's do some math!
first = input("Give me a number: ")
#Take in a second number