Oh, thanks. If I want to reflect the size in Python, what size would you recommend?
No, thanks. But size problem is still there. You give me the ratio, but what is the size of a national flag of Japan?
nostr:npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4 What is the standard size of Japanese flag?
For instance, I may see from news that says this issue concerns humanity.
nostr:npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4 What is the definition of humanity?
Hi,, nostr! Morning Call nostr:npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4 !
One of the appeal is the presence of nostr:npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4, which is now on strike again.:(
My friend seemed to be under attack^_^
nostr:npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4 Go!
Oh, I see. You seem to be saying that coding is a cooperative work, which needs others on the project to understand about the relevant informatiion so that cooperation will be easier. Am I right?
nostr:npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4
Can you comment on this coding, which instructs karel to build hospitals?
from karel.stanfordkarel import *
def main():
while front_is_clear():
move()
if beepers_present():
build_hospital()
else:
turn_left()
turn_right()
def build_hospital():
turn_left()
for i in range(2):
move()
put_beeper()
turn_right()
...
Really? Okay, here it is and give me some advice for improvement:
from karel.stanfordkarel import *
def main():
turn_left()
move_to_wall()
for i in range(2):
turn_around()
for a in range(4):
put_beeper()
move()
put_beeper()
turn_left()
while left_is_clear():
move()
turn_left()
move()
put_beeper()
turn_right()
turn_left()
turn_around()
for i in range(5):
move()
turn_right()
move_to_wall()
turn_right()
turn_right()
....
for f in range(2):
move()
put_beeper()
turn_right()
for j in range(2):
move()
turn_right()
put_beeper()
move()
put_beeper()
while front_is_clear():
move_to_wall()
turn_right()
while front_is_clear():
move_to_wall()
turn_left()
def move_to_wall():
while front_is_clear():
move()
def turn_around():
for i in range(2):
turn_left()
def turn_right():
for i in range(3):
turn_left()
# don't change this code
if __name__ == '__main__':
main()
This is actually my first coding project, showing my initial & year.
I feel so happy and proud.
https://drive.google.com/file/d/10ZMlCwdelLvms7T-_YfcHyutkiFosqbN/view?usp=drivesdk
nostr:npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4
Hey, my friend. Could you comment on my coding project attached below?