I wasn't talking about buying a house right after I graduate. I was talking about when I become a practicing podiatrist for a few years.Your goal before you start practicing should be to increase your financial literacy. The variables matter. The word "afford" means many things to many people. If you go to a mortgage calculator online you can put in any amount and determine the monthly payment. If afford to you means - do I have the cash flow to make the payment then the answer is probably yes if you have any sort of decent income. My personal family experience is that banks are more than happy to lend you more than you can afford. The words "house poor" exist for a reason. For very good reason, people historically tried to put down 20% when they purchased a home. There's a number of benefits to that, but in your example that would require $80K.
Unfortunately your school isn't going to tell you the grown up financial things you probably need to do when you graduate. A distant family member of mine actually pulled me aside a week before I started residency and reiterated all the things I'd read on whitecoatinvestor.com (a website you should absolutely check out). Term life, umbrella insurance, Roth IRA, a personal Disability Insurance policy, saving 20+%, attacking your student loans, etc.
Anyway - I hope you get the house you want someday. That said - there's only so much money to go around and you can only work for so long.