From c73e48da9f83c528901d7bbab40d1f43f1eefa44 Mon Sep 17 00:00:00 2001 From: Christian Olsson Date: Thu, 22 Feb 2018 15:51:45 +0100 Subject: [PATCH] =?UTF-8?q?Allm=C3=A4na=20tester?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Pass1/Datatypes.py | 6 +++--- Pass1/Lists.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Pass1/Datatypes.py b/Pass1/Datatypes.py index 23f5a73..36207f8 100755 --- a/Pass1/Datatypes.py +++ b/Pass1/Datatypes.py @@ -1,4 +1,4 @@ -#Python is a dynamically typed language. Python uses values not variables :) +# Python is a dynamically typed language. Python uses values not variables :) a = 100 b = "foo" c = True @@ -13,9 +13,9 @@ print(c) print(d) print(a+d) -#bunch of different ways to concatenate different datatypes, format is recommended I believe +# Bunch of different ways to concatenate different datatypes, format is recommended I believe print(str(a)+e) print(a,e) print("Concatenate: {} {}".format(a,e)) print("Concatenate: {} {}".format(a,c)) -print("Concatenate: %d %s " % (a,e)) \ No newline at end of file +print("Concatenate: %d %s " % (a,e)) diff --git a/Pass1/Lists.py b/Pass1/Lists.py index 643d48e..2367011 100755 --- a/Pass1/Lists.py +++ b/Pass1/Lists.py @@ -33,4 +33,4 @@ print(tuple1) #There are even dictionaries with key/value pairing movies = {'Pacific Rim': '5 stars', 'Black Panther': '5 stars', "Zombie Beavers":"0 stars"} for i, j in movies.items(): - print(i,j) \ No newline at end of file + print(i,j)