Python for the .NET developer Transcripts
Chapter: Your setup
Lecture: Let's get you setup

Login or purchase this course to watch this video and the rest of the course contents.
0:00 In this short chapter
0:01 we're just going to talk about the setup
0:02 and tools that you need in order to follow along
0:05 and work on the code from this course.
0:09 Would it surprise you to hear that you need Python?
0:11 Yeah, that's right
0:12 you're going to have to have Python installed
0:13 for our Python course.
0:15 But, specifically, you're going to have to have
0:17 at least Python 3.6 or higher.
0:21 Look, if 3.9 is out, go get that.
0:23 At the time of this recording
0:24 they just released 3.8 so that's totally good.
0:29 In particular
0:30 we're going to need to use the async
0:32 and await features that were introduced in Python 3.5.
0:35 Throughout the course we use
0:36 what are called f-strings in Python.
0:38 These are formatted strings.
0:39 Think string interpolation
0:41 the dollar sign string in C#.
0:43 That requires 3.6 or above.
0:45 So, basically, to run the sample code exactly as it is
0:48 you're going to need 3.6 or above
0:49 but like I said, get the latest.
0:51 You may be wondering, do I already have Python?
0:54 What version is it? Do I need to update it?
0:56 Some operating systems come with it.
0:58 Others don't.
0:59 So if you're on macOS or Linux, you can type
1:02 python3 -V and it'll print out the version.
1:06 Like I said, 3.8 just came out
1:08 but it hasn't gotten a chance to propagate over
1:10 to my MacBook yet.
1:11 3.7.4 is what we got installed right now.
1:14 And this is plenty good.
1:15 3.7 is great.
1:16 This is how you check on Mac and Linux.
1:19 Most of you, I would suspect, are on Windows.
1:21 And on Windows, if you type python -V, capital V again
1:26 you'll see what version of Python you have there.
1:28 But there's a caveat.
1:29 Python in Windows is a little bit tricky.
1:32 Until very recently
1:33 they didn't have this python3 command that lets you
1:36 -V, a command, distinguish between Python 3 and Python 2
1:39 or whatever the default version is.
1:41 Depending on how you have Python installed on Windows
1:44 this might report the latest version
1:46 of the most up-to-date version of Python
1:48 or it might just report the version
1:49 that is the latest or the most recent in the path
1:53 okay, that occurs earliest in your path on Windows.
1:57 So you can type where python.
2:00 It'll give you a long list of all of the options
2:02 that you could possibly run and then you might see
2:06 oh, here's a newer version.
2:07 Let me make sure that that's listed in the path first.
2:10 Both platforms we're going to need 3.6 or higher.
2:12 Here's how you check.
2:14 One final note on Windows.
2:16 If this comes up with something weird
2:18 or doesn't give you an output
2:19 like if it doesn't say Python something below
2:22 just type Python alone and that will probably
2:26 on the latest version of Windows 10
2:27 open up the Windows store and suggest that you go get
2:31 and install Python 3 from the Windows store.
2:34 So there's this command on Windows that is Python
2:37 even if you don't have Python installed.
2:39 It's just a shim to launch the store app version
2:42 of Python and get that set up for you. Okay?