# Week 6 Office Hours - Post Your Questions here

 6 2 Please post your questions for Week 6 office hours here. We'll record office hours on Friday. asked 27 Mar '12, 12:43 UdacityDave ♦♦ 17.4k●25●62●82 accept rate: 455% 4 I've really enjoyed CS101, so thank you Dave & Peter. I would like to take more level 1 courses, ideally prior to taking level 2 ones. Are there plans to offer more level 1 courses? (28 Mar '12, 09:18) Sujata Krishna I just have to say a Huge thanks to Professor Dave and Udacity CS101 team....!!! Long live Udacity long live Udacians ...!!!:) (29 Mar '12, 16:12) vipul divyanshu We are about to start filming office hours. (29 Mar '12, 17:46) PeterUdacity ♦♦ Work on your evil laugh, Peter! (29 Mar '12, 17:48) Charles Lin I just posted a question for the office hours, will it make it? I guess if not, then it will be responded here? Thanks. (29 Mar '12, 19:17) María proud to be Udacian.......... (30 Mar '12, 06:29) Adnan Masood

 7 Could we get to see a little more of the autograder, please? (old question) answered 27 Mar '12, 13:30 Anton Golov ♦ 13.3k●21●74●174 4 There are no plans to share the code externally. Homework 6 will tell you the input you failed on. Homework 6 Starred questions (which will be more visibly separate) will tell you how many test cases you pass. The plan is to eventually use the output format from the starred questions for every unit quiz/homework. (27 Mar '12, 13:41) PeterUdacity ♦♦ Awesome upgrade! Will the result (how many/which test cases were passed/not passed) be immediate or only visible after due date? For multiple coice I understand it makes no sense to give away any clues. But for more and more complex code, it would be of great help to know right away, to fix code for those cases; I don't think that's giving too much away. (27 Mar '12, 13:50) SimStim Only after the due date. To do it before the due date requires a fundamental change in how all the backend elements communicate, i.e. a lot of work. This is something I've put together on my own without support from engineering. (27 Mar '12, 14:00) PeterUdacity ♦♦ You're da man! It still helps, though. Good job. (27 Mar '12, 14:02) SimStim
 7 Dave mentioned "pythonic" in one of the instruction video. Would you please elaborate on this and how can we make our code more pythonic? answered 28 Mar '12, 22:26 chainsawriot 458●4●14
 5 More details on the final. Format and coverage (will it include info from Peter's homework answers or from Office Hours?) answered 27 Mar '12, 14:06 MarkC 2.0k●13●42 To add to this, also, will we be given more time than a week to complete the final exam? As, I guess many of us may be university and school students and might have their semester/final exams coming up during April! It would be great if you could give us some more time to complete the final exam if possible! Thank You! P.S.: I have 5 final exams in my university during the final week of this course! I have no idea how I will write the final exam of this course! Its close to impossible! :( (29 Mar '12, 06:05) Abhishek Sar...
 3 What's the difference between python 2.x and 3.0? Are we learning an 'outdated' language by learning python 2.x? answered 27 Mar '12, 13:03 Brian Yee 2.4k●2●12●36 The way I see it, we're learning basics of computer science here, not fancy-pantsy aspects of a particular programming language. For those basics, differences in Python version shouldn't matter at all. Like, we're not going to build a search engine that can really compete with Google & co., but as a means to an end, it can help understand possible applications of the basics of CS. Else it would be too abstract for many, probably including myself! =) (27 Mar '12, 13:07) SimStim 1 The differences aren't that big, but do break compatibility. What you learn applies very well to Python 3 and most other programming languages. Probably the single biggest one is that many of the statements were turned into functions. So "print" isn't special anymore and you have to say print('hi') and not print 'hi'. Going forward more and more people will use Python 3, but the fact of the matter is that most of industry uses Python 2.x and that will be true for a while. (27 Mar '12, 13:47) PeterUdacity ♦♦ Guido Von Rossum (the creator of Python) said that Python 3 is the future, but he encourages to learn Python 2.x because, like Peter said, most of the industry uses it. One of the reasons of this, is that most libraries were written in Python 2.x; although they have a while now making the transition to Python 3. (29 Mar '12, 16:19) Alan Avalos-4
 3 In PageRank which we have learned in Unit 6, a page' rank is decided by all the ranks of pages linking to it. Suppose we have a page with the highest rank in the website named Page A. If we search every single word exits in Page A, we will always get Page A. So my question is: In a real search engine like Google Search, is the rank of page related to words the page includes? answered 28 Mar '12, 06:32 Huarong Huo 595●3●26 We talked about this for a bit in office hours. (29 Mar '12, 20:47) PeterUdacity ♦♦
 2 Is there a way to see the code for python functions. For example, can we see how max(1,2,3) works, or any other function. I.e. how the in-built code is written. I searched the python documentation and the inspect function is suggested (inspect.getsource(object)) but that doesn't seem to work for in-built functions but only for user defined ones. answered 27 Mar '12, 15:13 Hamid 95●1●7 Python is only partially programmed in Python itself. Many core functions are programmed in the "C" language, for matters of speed. Therefore an "inspect" for core functions would be very difficult to realise. And it would only help you if you also were fluent in C... (27 Mar '12, 15:20) SimStim 1 You can view the disassembly of functions by importing dis and then calling dis.dis(funcname). However, the result isn't Python -- it's Python bytecode (and may very well consist of just a call to C). However, it's still fascinating to look at and you could learn to read it just like any other language. (27 Mar '12, 15:26) Anton Golov ♦ At the Python website you can download the source code for Python. It's a bit difficult to look through but it's doable. I've done it for a few quizzes and homeworks to adapt some more complex code for the grading. (27 Mar '12, 17:29) PeterUdacity ♦♦ Peter, that is hardcore. I bow. (28 Mar '12, 08:41) JohanG-Sweden Whilst debugging some Python (using the interpreter's debugger) a while back I accidentally 'entered' a random.randint call and found myself inside the 'random' library, looking at the code for randint, choice, etc. Felt weird, like I'd seen the Wizard of Oz behind the curtain, but kinda powerful too! (14 Apr '12, 07:40) johnmkershaw
 2 Can you give us a model of our examination in 7th week ? answered 27 Mar '12, 17:46 Adnan Masood 630●3●8●28 We talked about this in office hours. (29 Mar '12, 20:47) PeterUdacity ♦♦
 2 I'm trying to figure out what kind of new features could improve a new search engine. What are the current issues or problems that major search engines are trying to sort? answered 27 Mar '12, 18:53 Santiago-1 77●1●4 We answered this in office hours. (29 Mar '12, 20:46) PeterUdacity ♦♦
Question text:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "Title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

×15,218
×141
×110
×15
×13