What does Brexit mean?

The first thing that Teresa May wanted to make clear on becoming the Prime Minister of the UK, was that “Brexit means Brexit”. (e.g. Link to video). She has repeated this whenever asked about Brexit. During the G20 summit in Hangzhou China, she further explained in a press conference, “The reason I’ve been saying Brexit means Brexit is precisely because it means it does”.

To help anyone who still isn’t sure about what Brexit means I have written a computer program to illuminate you.

The output of the program is as follows:

Want to know what Brexit means?
y/n:y
‘Brexit’ means Brexit

Want to know what ‘Brexit’ means Brexit means?
y/n:y
”Brexit’ means Brexit’ means ‘Brexit’ means Brexit

Want to know what ”Brexit’ means Brexit’ means ‘Brexit’ means Brexit means?
y/n:y
”’Brexit’ means Brexit’ means ‘Brexit’ means Brexit’ means ”Brexit’ means Brexit’ means ‘Brexit’ means Brexit

Want to know what ”’Brexit’ means Brexit’ means ‘Brexit’ means Brexit’ means ”Brexit’ means Brexit’ means ‘Brexit’ means Brexit means?
y/n:y
””Brexit’ means Brexit’ means ‘Brexit’ means Brexit’ means ”Brexit’ means Brexit’ means ‘Brexit’ means Brexit’ means ”’Brexit’ means Brexit’ means ‘Brexit’ means Brexit’ means ”Brexit’ means Brexit’ means ‘Brexit’ means Brexit

Want to know what ””Brexit’ means Brexit’ means ‘Brexit’ means Brexit’ means ”Brexit’ means Brexit’ means ‘Brexit’ means Brexit’ means ”’Brexit’ means Brexit’ means ‘Brexit’ means Brexit’ means ”Brexit’ means Brexit’ means ‘Brexit’ means Brexit means?
y/n:

The code in Python3 is as follows:

# -*- coding: utf-8 -*-
"""
Created on Sun Sep 18 14:24:10 2016

Program to show what Brexit means.

@author: Mathew Peet
“””

str=”Brexit”
iWantToKnow = True

while iWantToKnow == True:
print(“Want to know what”,str,” means?”)
ans=input(“y/n:”)
ans = ans.lower()
if ans==’y’ or ans==’yes’:
str=”‘”+str+”‘”+’ means ‘+str
print(str,’\n\n’)
else:
iWantToKnow=False

 

screenshot-from-2016-09-18-154012

Advertisements

Thermocalc script – equilibrium calculation

Here is code to calculate equilibrium and put to an output file. With an external program you can use this to put output into format for a graph.

comments start with @@ on a new line, but can only be put before the blocks of commands.


goto-module poly_3
@@ define database and composition, First line major element (balance)
@@ Y is for weight percent, N would be at/mole percent
@@ then elements and amounts, blank line to finish
@@ then temperature in Celcius, remove or add phases (2 lines NONE, NONE)
@@ Y to say OK
@@ Then N to say no miscibility gap
define-material
ttni8
Ni
Y
Cr
25
C
0.2
Al
2.0
Ti
0.15
Zr
0.07
Mn
0.1
Si
0.25
Cu
0.05
Fe
10

500
NONE
NONE
Y
N
@@ list the equilibrium, change FILENAME to SCREEN (or leave as default)
list-equilibrium
FILENAME
vxcs