Demonstration- Using the Python Playground

دوره: Python Data Structures / فصل: Unit- Installing and Using Python / درس 1

Demonstration- Using the Python Playground

توضیح مختصر

Last week we talked about the theory of programming and computer science and the Macarena and all that kind of stuff. And so it's launched externally using a technology called Learning Tools Interoperability. But like I said, I really would personally prefer that you build the skills in running Python on your laptop as quick as possible.

  • زمان مطالعه 3 دقیقه
  • سطح متوسط

دانلود اپلیکیشن «زوم»

این درس را می‌توانید به بهترین شکل و با امکانات عالی در اپلیکیشن «زوم» بخوانید

دانلود اپلیکیشن «زوم»

فایل ویدیویی

متن انگلیسی درس

So welcome to this week. Last week we talked about the theory of programming and computer science and the Macarena and all that kind of stuff. And that’s cool, but now we’re going to start writing programming. Writing programs using Python. And one of the things we’re trying to encourage you to do is install Python and run it because sooner or later you are going to have to do that, right? You’re going to have to install it and run it, we got a bunch of videos. But in courses one and courses two, you don’t actually have to do that. Now we know that some people are using iPad’s or are Chromebooks or something else and you can’t install Python. Or maybe your just school that you can’t install Python, so it’s great that you can write Python programs using software we provided in the browser. And we have this Python playground, and so as you go through the course you’ll find assignments that you have to do. But what this is is this is an ungraded assignment, Python Code Playground. And so it’s launched externally using a technology called Learning Tools Interoperability. So it’s going to pop this open in a new tab, so you see that it’s in a new tab, right? And it’s a Python Playground. Now, this is kind of like the auto grader except it has no expectations and you can write any code that you want okay? And so let me hit the reset code button. And you can always go back to the default code and this is the code that’s there for you. And if I want to run it I can just say go ahead and run this code all right. And so the code runs and the output’s over here. So it actually ran the Python and the code came out over here. Now this is a file, this is like chapter seven, it’s even from course two. So the default code here is probably not what you want to play with. You can play with something like print > play And run that, and so it runs the code and then you’re output comes here. Now there are three files which is later chapter seven. And later that you can use. This are the sample files that we use through all the lot of the assignments in the book. And a way you go. And so you can do whatever you want here, it’s not being graded. There’s no grade being sent back to Coursera. And so a way you go and if you’re writing Python on your laptop or your computer you are way better to just learn how to do Python there. And then paste the code into the auto-grader later, but if you have no access whatsoever that’s why we gave you the Python playground. If you want to do this is in Python 2 because the course is taught in Python 3. There’s a little button down here that says switch to Python 2 and so you can run Python 2 code in here as well. If you know Python 2, in the first 10 weeks of the class, you can actually switch back and forth between submitting your assignments in Python 3 and Python 2. But in this case, now the other thing that’s cool about this is that you aren’t going to see this button, you’re not going to see any of those buttons. This view student code allows our teaching staff to take a look at your code. And, so we don’t allow you to paste code into the forums. So, what you can do, is you can ask for help in the forums, and a teaching staff can go in and view the student code, type in your name or email, and then find the code that you last put in. So, you can put something in here and get some help on it. The teaching assistant can see your entire code, they can run your code, they can do all kinds of things. And so, it’s a great way to communicate with the teaching assistant. You sort of leave your code in the playground, you ask the teaching assistant and then they go take a look at your code and give you some answers. When you’re all done, you simply press done. And we’re back to week 2. But like I said, I really would personally prefer that you build the skills in running Python on your laptop as quick as possible. But if that’s not practical for you then that’s why we have the Python playground here in courses one and two.

مشارکت کنندگان در این صفحه

تا کنون فردی در بازسازی این صفحه مشارکت نداشته است.

🖊 شما نیز می‌توانید برای مشارکت در ترجمه‌ی این صفحه یا اصلاح متن انگلیسی، به این لینک مراجعه بفرمایید.