Skip to content

Commit 34bb904

Browse files
author
GeekTrainer
committed
Module 13
1 parent c89cc42 commit 34bb904

File tree

5 files changed

+83
-0
lines changed

5 files changed

+83
-0
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.30723.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "Module13Functions", "Module13Functions\Module13Functions.pyproj", "{69742592-2F5B-4A0B-92A0-D900FC907578}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{69742592-2F5B-4A0B-92A0-D900FC907578}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{69742592-2F5B-4A0B-92A0-D900FC907578}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#Define this function
2+
#When someone calls this function, execute this code
3+
def main():
4+
names = getNames()
5+
printNames(names)
6+
return
7+
8+
def getNames():
9+
names = ['Christopher', 'Susan', 'Danny']
10+
newName = input('Enter last guest: ')
11+
names.append(newName)
12+
return names
13+
14+
def printNames(names):
15+
for name in names:
16+
print(name)
17+
return
18+
19+
#Execute the main function
20+
#In order to do that the function must be created
21+
#Start the program
22+
main()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<SchemaVersion>2.0</SchemaVersion>
6+
<ProjectGuid>69742592-2f5b-4a0b-92a0-d900fc907578</ProjectGuid>
7+
<ProjectHome>.</ProjectHome>
8+
<StartupFile>Module13Functions.py</StartupFile>
9+
<SearchPath>
10+
</SearchPath>
11+
<WorkingDirectory>.</WorkingDirectory>
12+
<OutputPath>.</OutputPath>
13+
<Name>Module13Functions</Name>
14+
<RootNamespace>Module13Functions</RootNamespace>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
17+
<DebugSymbols>true</DebugSymbols>
18+
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
19+
</PropertyGroup>
20+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
21+
<DebugSymbols>true</DebugSymbols>
22+
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
23+
</PropertyGroup>
24+
<ItemGroup>
25+
<Compile Include="Module13Functions.py" />
26+
</ItemGroup>
27+
<PropertyGroup>
28+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
29+
<PtvsTargetsFile>$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets</PtvsTargetsFile>
30+
</PropertyGroup>
31+
<Import Condition="Exists($(PtvsTargetsFile))" Project="$(PtvsTargetsFile)" />
32+
<Import Condition="!Exists($(PtvsTargetsFile))" Project="$(MSBuildToolsPath)\Microsoft.Common.targets" />
33+
<!-- Uncomment the CoreCompile target to enable the Build command in
34+
Visual Studio and specify your pre- and post-build commands in
35+
the BeforeBuild and AfterBuild targets below. -->
36+
<!--<Target Name="CoreCompile" />-->
37+
<Target Name="BeforeBuild">
38+
</Target>
39+
<Target Name="AfterBuild">
40+
</Target>
41+
</Project>

Office Docs/13 Functions.pptx

20 Bytes
Binary file not shown.

Office Docs/14 Handling errors.pptx

2.08 KB
Binary file not shown.

0 commit comments

Comments
 (0)