Plutonic Rainbows

Ikebukuro Owl Police Box

Atlas Obscura:

Since the police box is within a stone’s throw of Ikebukuro Station and very eye-catching, many people use it as a meeting point. It’s probably one of the safest meeting points in Tokyo, right next to police officers.

Link

New Words

Artificial Intelligence: 人工知能.

For example, 大学から2年間ぐらい人工知能を勉強しました。

Neural Network (i.e Python's Tensor Flow): ニューラルネットワーク.

Machine Learning: 機械学習.

For example, 21世紀に機械学習の問題は増えます.

While Loop & Exit

A simple script that asks a user to guess the number. It uses a while loop that will continue to ask for user input until the condition is met. We then use exit() to break the loop.

from sys import exit

while True:
    print "Try and guess the number."
    guess = raw_input("> ")

    if guess == "7":
            print "You guessed correctly."
            exit(0)

    else:
        print "Wrong."

Week 11

Next week's work will be solely Japanese; namely Kanji and sentence construction. I'm also going to try and get a short story finished. A busy week ahead.

Calculations and New Job

Started a new job today. Wrapping up this week's work with Python revision, so here's a simple division calculator using (float(raw_input(">"))) to get user input. I also use \n to create clean lines when terminal gives you the results.

def division(value_1, value_2):
    print "\nDividing %d / %d\n" % (value_1, value_2)
    return value_1 / value_2

value_1 = (float(raw_input(">")))
value_2 = (float(raw_input(">")))

result = division(value_1, value_2)

print "\nThe answer is %d.\n" % (result)