generated from mwc/lab_names
lab names checkpoint 1
Hello! It takes a little longer than the first lab to understand how everything goes, but still it's easy to figure out. I could not print the area of the circle at first cause I had put it inbetween quotations... ofc then it just printed "circle_area" lol. So then I looked back at the other examples from the lab and figured out my mistake. All in all I understand it but it is less intuitive than the previous lab. Maybe also because there is less of a clear goal? I am just following the instructions. But I guess that is always gonna be the case when getting introduced to the basics of a new skill. Btw, I could not submit any text during the adventure lab but I really liked it as a game, cause it was very vividly described and also it really teaches you the commands well. I am now using tabs all the time!! and cd .. (whereas previously I had to exit the terminal and find my way back to the right folder, which is way too timeconsuming). Anyway, I am really enjoying these lessons. I don't know how I would teach it to students (thank god im just teaching myself - with your help!).
This commit is contained in:
@@ -4,3 +4,7 @@
|
||||
|
||||
print("This program will calculate the area of a circle.")
|
||||
radius = float(input("What is the circle's radius? "))
|
||||
pi = 3.141592653
|
||||
circle_area = pi * radius * radius
|
||||
print(circle_area)
|
||||
|
||||
|
@@ -2,6 +2,6 @@
|
||||
# ------------
|
||||
# By MWC contributors
|
||||
|
||||
my_name ="Chris"
|
||||
my_name = input("What is your name? ")
|
||||
greeting = "Hello, " + my_name
|
||||
print(greeting)
|
||||
|
7
poetry.lock
generated
Normal file
7
poetry.lock
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
# This file is automatically @generated by Poetry 2.1.4 and should not be changed by hand.
|
||||
package = []
|
||||
|
||||
[metadata]
|
||||
lock-version = "2.1"
|
||||
python-versions = ">=3.10,<4.0"
|
||||
content-hash = "7b8fc01b274bd807fb00372bbc8e138330f15ae7978ed61e180f3b17ec076725"
|
Reference in New Issue
Block a user