diff --git a/ComplexIfStatements/ComplexIfStatements.sln b/ComplexIfStatements/ComplexIfStatements.sln new file mode 100644 index 0000000..48d642c --- /dev/null +++ b/ComplexIfStatements/ComplexIfStatements.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30723.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "ComplexIfStatements", "ComplexIfStatements\ComplexIfStatements.pyproj", "{C5AAA57E-C878-4350-842A-B7C1BD5FCABC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C5AAA57E-C878-4350-842A-B7C1BD5FCABC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C5AAA57E-C878-4350-842A-B7C1BD5FCABC}.Release|Any CPU.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/ComplexIfStatements/ComplexIfStatements/ComplexIfStatements.py b/ComplexIfStatements/ComplexIfStatements/ComplexIfStatements.py new file mode 100644 index 0000000..f4d677e --- /dev/null +++ b/ComplexIfStatements/ComplexIfStatements/ComplexIfStatements.py @@ -0,0 +1,39 @@ +team = input('Enter your favorite hockey team: ').upper() +sport = input('Enter your favorite sport: ').upper() + +if sport == 'HOCKEY': + print('Go hockey!!') + if team == 'SENATORS': + print('Good luck getting to the cup') + print('We do love hockey!!') + +#sportIsHockey = False +#if sport == 'HOCKEY': +# sportIsHockey = True + +#teamIsCorrect = False +#if team == 'SENATORS' or team == 'LEAFS': +# teamIsCorrect = True + +#if sportIsHockey and teamIsCorrect: +# print('Good luck getting to the cup this year') + +##If the sport is hockey, and the team is the senators or leafs, display the cup message +#if sport == 'HOCKEY' and (team == 'SENATORS' or team == 'LEAFS'): +# print('Good luck getting to the cup this year') + +#if sport == 'HOCKEY' and team == 'RANGERS': +# print('I miss Messier') +#elif team == 'LEAFS' or team == 'SENATORS': +# print('Good luck getting the cup this year') +#else: +# print('I don\'t know that team') + +#if team == 'FLYERS': +# print('Best team ever!!') +#elif team == 'SENATORS': +# print('Go Sens Go!') +#elif team == 'RANGERS': +# print('Go Rangers') +#else: +# print('I don\'t have anything clever to say here') \ No newline at end of file diff --git a/ComplexIfStatements/ComplexIfStatements/ComplexIfStatements.pyproj b/ComplexIfStatements/ComplexIfStatements/ComplexIfStatements.pyproj new file mode 100644 index 0000000..b8f3a56 --- /dev/null +++ b/ComplexIfStatements/ComplexIfStatements/ComplexIfStatements.pyproj @@ -0,0 +1,41 @@ + + + + Debug + 2.0 + c5aaa57e-c878-4350-842a-b7c1bd5fcabc + . + ComplexIfStatements.py + + + . + . + ComplexIfStatements + ComplexIfStatements + + + true + false + + + true + false + + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets + + + + + + + + + + \ No newline at end of file diff --git a/Module10Lists/Module10Lists.sln b/Module10Lists/Module10Lists.sln new file mode 100644 index 0000000..fac51a6 --- /dev/null +++ b/Module10Lists/Module10Lists.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30723.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "Module10Lists", "Module10Lists\Module10Lists.pyproj", "{693EB94A-39ED-4936-9E76-5859D192CC07}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {693EB94A-39ED-4936-9E76-5859D192CC07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {693EB94A-39ED-4936-9E76-5859D192CC07}.Debug|Any CPU.Build.0 = Debug|Any CPU + {693EB94A-39ED-4936-9E76-5859D192CC07}.Release|Any CPU.ActiveCfg = Release|Any CPU + {693EB94A-39ED-4936-9E76-5859D192CC07}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Module10Lists/Module10Lists/Module10Lists.py b/Module10Lists/Module10Lists/Module10Lists.py new file mode 100644 index 0000000..466a984 --- /dev/null +++ b/Module10Lists/Module10Lists/Module10Lists.py @@ -0,0 +1,32 @@ +guests = ['Susan','Christopher','Bill','Satya','Sonal'] + +#option two for looping through a list +for currentGuest in guests : + print(currentGuest) + +##option one for looping through a list +#nbrValueInList = len(guests) + +#for steps in range(nbrValueInList) : +# print(guests[steps]) + + +#remove a value from the list +#guests.remove('Satya') +#del guests[0] +#print (guests[0]) +#print (guests[-1]) + + +##add a value +#guests.append('Colin') +#print (guests[-1]) + +##update a value +#guests[3] = 'Sonal' +#print (guests[3]) + + + + + diff --git a/Module10Lists/Module10Lists/Module10Lists.pyproj b/Module10Lists/Module10Lists/Module10Lists.pyproj new file mode 100644 index 0000000..e7449cf --- /dev/null +++ b/Module10Lists/Module10Lists/Module10Lists.pyproj @@ -0,0 +1,28 @@ + + + + Debug + 2.0 + 693eb94a-39ed-4936-9e76-5859d192cc07 + . + Module10Lists.py + + + . + . + Module10Lists + Module10Lists + + + true + false + + + true + false + + + + + + \ No newline at end of file diff --git a/Module11WritingFiles/Module11WritingFiles.sln b/Module11WritingFiles/Module11WritingFiles.sln new file mode 100644 index 0000000..e6e3e60 --- /dev/null +++ b/Module11WritingFiles/Module11WritingFiles.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30723.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "Module11WritingFiles", "Module11WritingFiles\Module11WritingFiles.pyproj", "{F133A98E-0171-4987-84FE-3E13A09636CE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F133A98E-0171-4987-84FE-3E13A09636CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F133A98E-0171-4987-84FE-3E13A09636CE}.Release|Any CPU.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Module11WritingFiles/Module11WritingFiles/Module11WritingFiles.py b/Module11WritingFiles/Module11WritingFiles/Module11WritingFiles.py new file mode 100644 index 0000000..3d4030e --- /dev/null +++ b/Module11WritingFiles/Module11WritingFiles/Module11WritingFiles.py @@ -0,0 +1,16 @@ +fileName = 'demo.txt' +WRITE = 'w' +APPEND = 'a' + +data = input('Please enter file info') + +file = open(fileName, mode = WRITE) +file.write(data) +file.close() + +#file = open(fileName, mode = WRITE) +#file.write('Susan, 29\n') +#file.write('Christopher, 31') +#file.close() + +print('File written successfully') \ No newline at end of file diff --git a/Module11WritingFiles/Module11WritingFiles/Module11WritingFiles.pyproj b/Module11WritingFiles/Module11WritingFiles/Module11WritingFiles.pyproj new file mode 100644 index 0000000..ce43b58 --- /dev/null +++ b/Module11WritingFiles/Module11WritingFiles/Module11WritingFiles.pyproj @@ -0,0 +1,41 @@ + + + + Debug + 2.0 + f133a98e-0171-4987-84fe-3e13a09636ce + . + Module11WritingFiles.py + + + . + . + Module11WritingFiles + Module11WritingFiles + + + true + false + + + true + false + + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets + + + + + + + + + + \ No newline at end of file diff --git a/Module12ReadingFromFiles/Module12ReadingFromFiles.sln b/Module12ReadingFromFiles/Module12ReadingFromFiles.sln new file mode 100644 index 0000000..69ed971 --- /dev/null +++ b/Module12ReadingFromFiles/Module12ReadingFromFiles.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30723.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "Module12ReadingFromFiles", "Module12ReadingFromFiles\Module12ReadingFromFiles.pyproj", "{28A10113-491D-4CD8-A1B0-E6C6B2F05C71}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {28A10113-491D-4CD8-A1B0-E6C6B2F05C71}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {28A10113-491D-4CD8-A1B0-E6C6B2F05C71}.Debug|Any CPU.Build.0 = Debug|Any CPU + {28A10113-491D-4CD8-A1B0-E6C6B2F05C71}.Release|Any CPU.ActiveCfg = Release|Any CPU + {28A10113-491D-4CD8-A1B0-E6C6B2F05C71}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Module12ReadingFromFiles/Module12ReadingFromFiles/Module12ReadingFromFiles.py b/Module12ReadingFromFiles/Module12ReadingFromFiles/Module12ReadingFromFiles.py new file mode 100644 index 0000000..32ed987 --- /dev/null +++ b/Module12ReadingFromFiles/Module12ReadingFromFiles/Module12ReadingFromFiles.py @@ -0,0 +1,23 @@ +import csv + +#Open my file +with open("Tasmania.txt","r") as animalFile : + allRowsList = csv.reader(animalFile) + + for currentRow in allRowsList : + print(';'.join(currentRow)) + + #for currentWord in currentRow : + # print(currentWord) + + + +##Read file line by line +#firstAnimal = animalFile.readline() +#print(firstAnimal) +#secondAnimal = animalFile.readline() +#print(secondAnimal) + +##read all file contents +#allFileContents = animalFile.read() +#print(allFileContents) diff --git a/Module12ReadingFromFiles/Module12ReadingFromFiles/Module12ReadingFromFiles.pyproj b/Module12ReadingFromFiles/Module12ReadingFromFiles/Module12ReadingFromFiles.pyproj new file mode 100644 index 0000000..8c7fad1 --- /dev/null +++ b/Module12ReadingFromFiles/Module12ReadingFromFiles/Module12ReadingFromFiles.pyproj @@ -0,0 +1,28 @@ + + + + Debug + 2.0 + 28a10113-491d-4cd8-a1b0-e6c6b2f05c71 + . + Module12ReadingFromFiles.py + + + . + . + Module12ReadingFromFiles + Module12ReadingFromFiles + + + true + false + + + true + false + + + + + + \ No newline at end of file diff --git a/Module13Functions/Module13Functions.sln b/Module13Functions/Module13Functions.sln new file mode 100644 index 0000000..5968b5a --- /dev/null +++ b/Module13Functions/Module13Functions.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30723.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "Module13Functions", "Module13Functions\Module13Functions.pyproj", "{69742592-2F5B-4A0B-92A0-D900FC907578}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {69742592-2F5B-4A0B-92A0-D900FC907578}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {69742592-2F5B-4A0B-92A0-D900FC907578}.Release|Any CPU.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Module13Functions/Module13Functions/Module13Functions.py b/Module13Functions/Module13Functions/Module13Functions.py new file mode 100644 index 0000000..492f552 --- /dev/null +++ b/Module13Functions/Module13Functions/Module13Functions.py @@ -0,0 +1,13 @@ +import helpers + +#Define this function +#When someone calls this function, execute this code +def main(): + names = helpers.getNames() + helpers.printNames(names) + return + +#Execute the main function +#In order to do that the function must be created +#Start the program +main() diff --git a/Module13Functions/Module13Functions/Module13Functions.pyproj b/Module13Functions/Module13Functions/Module13Functions.pyproj new file mode 100644 index 0000000..61c7ab1 --- /dev/null +++ b/Module13Functions/Module13Functions/Module13Functions.pyproj @@ -0,0 +1,44 @@ + + + + Debug + 2.0 + 69742592-2f5b-4a0b-92a0-d900fc907578 + . + Module13Functions.py + + + . + . + Module13Functions + Module13Functions + + + true + false + + + true + false + + + + Code + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets + + + + + + + + + + \ No newline at end of file diff --git a/Module13Functions/Module13Functions/helpers.py b/Module13Functions/Module13Functions/helpers.py new file mode 100644 index 0000000..a46040f --- /dev/null +++ b/Module13Functions/Module13Functions/helpers.py @@ -0,0 +1,10 @@ +def getNames(): + names = ['Christopher', 'Susan', 'Danny'] + newName = input('Enter last guest: ') + names.append(newName) + return names + +def printNames(names): + for name in names: + print(name) + return \ No newline at end of file diff --git a/Module6MakingDecisionsWithCode/Module6MakingDecisionsWithCode/Module6MakingDecisionsWithCode.py b/Module6MakingDecisionsWithCode/Module6MakingDecisionsWithCode/Module6MakingDecisionsWithCode.py index df1dc68..a0fbd76 100644 --- a/Module6MakingDecisionsWithCode/Module6MakingDecisionsWithCode/Module6MakingDecisionsWithCode.py +++ b/Module6MakingDecisionsWithCode/Module6MakingDecisionsWithCode/Module6MakingDecisionsWithCode.py @@ -1 +1,21 @@ -print('Hello World') +#meanwhile earlier in the day +bestTeam = "senators" + +#if statements with strings +#favouriteTeam = input("What is your favourite hockey team? ") +#if favouriteTeam.upper() == bestTeam.upper() : +# print("Yeah Go Sens Go") +# print("But I miss Alfredsson") +#print ("It's okay if you prefer football/soccer") + +#if with numbers +freeToaster = None + +deposit = int(input("how much do you want to deposit ")) +if deposit > 100 : + freeToaster = True + +#complex code here... +if freeToaster : + print("enjoy your toaster") +print("Have a nice day!") diff --git a/Module9WhileLoops/Module9WhileLoops.sln b/Module9WhileLoops/Module9WhileLoops.sln new file mode 100644 index 0000000..e231116 --- /dev/null +++ b/Module9WhileLoops/Module9WhileLoops.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30723.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "Module9WhileLoops", "Module9WhileLoops\Module9WhileLoops.pyproj", "{E6AE8D51-5E56-4E2C-8D40-5644DF266E52}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E6AE8D51-5E56-4E2C-8D40-5644DF266E52}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E6AE8D51-5E56-4E2C-8D40-5644DF266E52}.Release|Any CPU.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Module9WhileLoops/Module9WhileLoops/Module9WhileLoops.py b/Module9WhileLoops/Module9WhileLoops/Module9WhileLoops.py new file mode 100644 index 0000000..5773a37 --- /dev/null +++ b/Module9WhileLoops/Module9WhileLoops/Module9WhileLoops.py @@ -0,0 +1,15 @@ +import turtle + +counter = 0 +while counter < 4: + turtle.forward(100) + turtle.right(90) + counter += 1 # This is the exact same thing as counter = counter + 1 + + +#answer = '0' + +#while answer != '42': +# answer = input('What is the answer to the ultimate question of life, the universe and everything? ') + +#print('Congratulations - you are right!!') \ No newline at end of file diff --git a/Module9WhileLoops/Module9WhileLoops/Module9WhileLoops.pyproj b/Module9WhileLoops/Module9WhileLoops/Module9WhileLoops.pyproj new file mode 100644 index 0000000..e4cf5e0 --- /dev/null +++ b/Module9WhileLoops/Module9WhileLoops/Module9WhileLoops.pyproj @@ -0,0 +1,41 @@ + + + + Debug + 2.0 + e6ae8d51-5e56-4e2c-8d40-5644df266e52 + . + Module9WhileLoops.py + + + . + . + Module9WhileLoops + Module9WhileLoops + + + true + false + + + true + false + + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets + + + + + + + + + + \ No newline at end of file diff --git a/Office Docs/1 Getting Started.pptx b/Office Docs/1 Getting Started.pptx index aedff7f..99d452a 100644 Binary files a/Office Docs/1 Getting Started.pptx and b/Office Docs/1 Getting Started.pptx differ diff --git a/Office Docs/10 Remembering lists.pptx b/Office Docs/10 Remembering lists.pptx index daefcf1..f0b8d63 100644 Binary files a/Office Docs/10 Remembering lists.pptx and b/Office Docs/10 Remembering lists.pptx differ diff --git a/Office Docs/11 How to save information in files.pptx b/Office Docs/11 How to save information in files.pptx index 295a959..631ca47 100644 Binary files a/Office Docs/11 How to save information in files.pptx and b/Office Docs/11 How to save information in files.pptx differ diff --git a/Office Docs/12 Reading from files.pptx b/Office Docs/12 Reading from files.pptx index 15bb6f7..b9b8a99 100644 Binary files a/Office Docs/12 Reading from files.pptx and b/Office Docs/12 Reading from files.pptx differ diff --git a/Office Docs/13 Functions.pptx b/Office Docs/13 Functions.pptx index fbeec86..b042e45 100644 Binary files a/Office Docs/13 Functions.pptx and b/Office Docs/13 Functions.pptx differ diff --git a/Office Docs/14 Handling errors.pptx b/Office Docs/14 Handling errors.pptx index fcabe74..135e8ff 100644 Binary files a/Office Docs/14 Handling errors.pptx and b/Office Docs/14 Handling errors.pptx differ diff --git a/Office Docs/6 Making decisions with code.pptx b/Office Docs/6 Making decisions with code.pptx index 4e5a232..a486964 100644 Binary files a/Office Docs/6 Making decisions with code.pptx and b/Office Docs/6 Making decisions with code.pptx differ diff --git a/Office Docs/8 Repeating events.pptx b/Office Docs/8 Repeating events.pptx index 2048570..35e7cd3 100644 Binary files a/Office Docs/8 Repeating events.pptx and b/Office Docs/8 Repeating events.pptx differ diff --git a/Office Docs/9 Repeating events until done.pptx b/Office Docs/9 Repeating events until done.pptx index 24460fe..d6ffa31 100644 Binary files a/Office Docs/9 Repeating events until done.pptx and b/Office Docs/9 Repeating events until done.pptx differ diff --git a/Office Docs/Slides.zip b/Office Docs/Slides.zip new file mode 100644 index 0000000..aa13bdf Binary files /dev/null and b/Office Docs/Slides.zip differ diff --git a/PythonApplication2/PythonApplication2.sln b/PythonApplication2/PythonApplication2.sln new file mode 100644 index 0000000..fb0e60e --- /dev/null +++ b/PythonApplication2/PythonApplication2.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30723.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "PythonApplication2", "PythonApplication2\PythonApplication2.pyproj", "{F8538EC8-0FF4-4A3D-8A21-ABB170848464}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F8538EC8-0FF4-4A3D-8A21-ABB170848464}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F8538EC8-0FF4-4A3D-8A21-ABB170848464}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F8538EC8-0FF4-4A3D-8A21-ABB170848464}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F8538EC8-0FF4-4A3D-8A21-ABB170848464}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/PythonApplication2/PythonApplication2/PythonApplication2.py b/PythonApplication2/PythonApplication2/PythonApplication2.py new file mode 100644 index 0000000..7717ab1 --- /dev/null +++ b/PythonApplication2/PythonApplication2/PythonApplication2.py @@ -0,0 +1,19 @@ +import turtle +#nbrsides = 5 +#for weirdname in range(nbrsides) : +# turtle.forward(100) +# turtle.right(360/nbrsides) +# for steps in range(nbrsides) : +# turtle.forward(50) +# turtle.right(360/nbrsides) + +for colour in ['red','green','blue','black'] : + turtle.color(colour) + turtle.forward(100) + turtle.left(90) + + + + + + diff --git a/PythonApplication2/PythonApplication2/PythonApplication2.pyproj b/PythonApplication2/PythonApplication2/PythonApplication2.pyproj new file mode 100644 index 0000000..5ff170f --- /dev/null +++ b/PythonApplication2/PythonApplication2/PythonApplication2.pyproj @@ -0,0 +1,28 @@ + + + + Debug + 2.0 + f8538ec8-0ff4-4a3d-8a21-abb170848464 + . + PythonApplication2.py + + + . + . + PythonApplication2 + PythonApplication2 + + + true + false + + + true + false + + + + + + \ No newline at end of file diff --git a/PythonApplication3/PythonApplication3.sln b/PythonApplication3/PythonApplication3.sln new file mode 100644 index 0000000..7b5341e --- /dev/null +++ b/PythonApplication3/PythonApplication3.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30723.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "PythonApplication3", "PythonApplication3\PythonApplication3.pyproj", "{C9341719-1D4E-4CE1-B25C-D947C4F5A29B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C9341719-1D4E-4CE1-B25C-D947C4F5A29B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C9341719-1D4E-4CE1-B25C-D947C4F5A29B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C9341719-1D4E-4CE1-B25C-D947C4F5A29B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C9341719-1D4E-4CE1-B25C-D947C4F5A29B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/PythonApplication3/PythonApplication3/PythonApplication3.py b/PythonApplication3/PythonApplication3/PythonApplication3.py new file mode 100644 index 0000000..3178f9a --- /dev/null +++ b/PythonApplication3/PythonApplication3/PythonApplication3.py @@ -0,0 +1,4 @@ +print('Hello World') +i = 1 +i += 1 +print(i) diff --git a/PythonApplication3/PythonApplication3/PythonApplication3.pyproj b/PythonApplication3/PythonApplication3/PythonApplication3.pyproj new file mode 100644 index 0000000..d91c4a5 --- /dev/null +++ b/PythonApplication3/PythonApplication3/PythonApplication3.pyproj @@ -0,0 +1,28 @@ + + + + Debug + 2.0 + c9341719-1d4e-4ce1-b25c-d947c4f5a29b + . + PythonApplication3.py + + + . + . + PythonApplication3 + PythonApplication3 + + + true + false + + + true + false + + + + + + \ No newline at end of file