ungleich-learning-circle/kjg/python.org
2020-05-18 22:55:52 +09:00

734 B

*python

Python #1:

ex0
ex1

>>> print("Hello World!") … print("Hello Again") … print("I like typing this.") … print("This is fun.") … print('Yay! Printing.') … print("I'd much rather you 'not'.") … print('I "said" do not touch this.') Hello World! Hello Again I like typing this. This is fun. Yay! Printing. I'd much rather you 'not'. I "said" do not touch this.

ex2

I could have code like this. This will run.

ex3

I will now count my chickens : Hens 30.0 Roosters 97 Now I will count the eggs : 6.75 Is it true that 3 + 2 < 5 - 7? False What is 3 + 2? 5 What is 5 - 7? -2 Oh, that;s why it's Fasle. How about some more. Is it greater? True Is it greater or equal? True Is it less or equal? False