just thought i'd chime in with a little important detail. . .
you can only borrow up to what your school has budgeted as the cost of attendance.
i'll give you an example. so say your instate school costs 15k in tuition and that they say you will need about 20 k for living expenses. this means you will ONLY be able to borrow up to 35k in federal stafford loans. i really don't see how you'll be able to buy the condo and live for a year on 20k, unless you have a huge nest egg already.
i was reading on a home-buyers guide that you shouldn't buy unless you plan on staying in an area more than 5 years. Also, don't forget that you will be responsible for all repairs and upkeep. as a med student, i think it will be difficult to put that much time and effort into your place. plus, closing costs, etc will gobble up a portion of your profit when you sell. it seems that you will also be getting a mortgage so don't forget to factor in interest for that. i just don't see how it makes sense to buy.
however, if you're buying to be able to claim residency at an OOS school, that might be worth looking into.