From 6cdeaf9148ff674cbd2e1320931cf95c5019b1b6 Mon Sep 17 00:00:00 2001 From: Chuck Date: Tue, 22 Jun 2021 20:04:10 -0400 Subject: [PATCH] the first real commit --- copy_past_python_interpreter.py | 16 ++++++++++++++++ fahrenheit_to_celsius.py | 3 +++ first_name_500_times.py | 2 ++ full_name.py | 5 +++++ 4 files changed, 26 insertions(+) create mode 100644 copy_past_python_interpreter.py create mode 100644 fahrenheit_to_celsius.py create mode 100644 first_name_500_times.py create mode 100644 full_name.py diff --git a/copy_past_python_interpreter.py b/copy_past_python_interpreter.py new file mode 100644 index 0000000..96550fe --- /dev/null +++ b/copy_past_python_interpreter.py @@ -0,0 +1,16 @@ +print ('hello world') + +print(type(True)) +print(type(42)) +print(type(False)) +print(type(1.5)) +print(type('Python is fun')) +print(type('3.5')) + +5+3 +3-0.0 +3*33 +5/4 +5//4 +5%4 +3**3 \ No newline at end of file diff --git a/fahrenheit_to_celsius.py b/fahrenheit_to_celsius.py new file mode 100644 index 0000000..4642dff --- /dev/null +++ b/fahrenheit_to_celsius.py @@ -0,0 +1,3 @@ +fahrenheit = 32 +celsius = (fahrenheit - 32)/1.8 +print(fahrenheit, "degrees fahrenheit is equal to",celsius,"degree(s) celsius") diff --git a/first_name_500_times.py b/first_name_500_times.py new file mode 100644 index 0000000..dcad24f --- /dev/null +++ b/first_name_500_times.py @@ -0,0 +1,2 @@ +first_name = 'Chuck' +print(first_name*500) \ No newline at end of file diff --git a/full_name.py b/full_name.py new file mode 100644 index 0000000..a15ed85 --- /dev/null +++ b/full_name.py @@ -0,0 +1,5 @@ +first_name = 'Chuck' +#print(first_name*500) +last_name = 'Kelly' +full_name = first_name +' ' +last_name +print(full_name) \ No newline at end of file