Initial commit
This commit is contained in:
5
python/areacircle.py
Normal file
5
python/areacircle.py
Normal file
@@ -0,0 +1,5 @@
|
||||
pi = 3.14159
|
||||
|
||||
r = 10
|
||||
|
||||
print(pi * r ** 2)
|
||||
5
python/birthday.py
Normal file
5
python/birthday.py
Normal file
@@ -0,0 +1,5 @@
|
||||
value = input('How old are you?:')
|
||||
|
||||
year = 1
|
||||
|
||||
print("Next year you will be", int(value) + int(year))
|
||||
5
python/birthday2.py
Normal file
5
python/birthday2.py
Normal file
@@ -0,0 +1,5 @@
|
||||
value = input('How old are you?:')
|
||||
|
||||
year = input('How many years until your next birthday?')
|
||||
|
||||
print("Next year you will be", int(value) + int(year))
|
||||
1
python/hello.py
Normal file
1
python/hello.py
Normal file
@@ -0,0 +1 @@
|
||||
print("hello world")
|
||||
10
python/iden.py
Normal file
10
python/iden.py
Normal file
@@ -0,0 +1,10 @@
|
||||
name = "Matt"
|
||||
first = name
|
||||
age = 1000
|
||||
print(id(age))
|
||||
age = age + 1
|
||||
print(id(age))
|
||||
names = []
|
||||
print(id(names))
|
||||
names.append("Fred")
|
||||
print(id(names))
|
||||
10
python/idne.py
Normal file
10
python/idne.py
Normal file
@@ -0,0 +1,10 @@
|
||||
name = "Matt"
|
||||
first = name
|
||||
age = 1000
|
||||
print(id(age))
|
||||
age = age + 1
|
||||
print(id(age))
|
||||
names = []
|
||||
print(id(names))
|
||||
names.append("Fred")
|
||||
print(id(names}}
|
||||
5
python/parameterrectangle.py
Normal file
5
python/parameterrectangle.py
Normal file
@@ -0,0 +1,5 @@
|
||||
b = 6
|
||||
|
||||
h = 2
|
||||
|
||||
print(2 * (b + h))
|
||||
Reference in New Issue
Block a user