[Tutor] Problem

2016-08-28 Thread shahan khan
Hello I'm teching myself Python using MIT opencourse ware. I'm a beginner and have some what knowledge of c and c++. I'm using Python version Here is the problem: McDiophantine: Selling McNuggets In mathematics, a Diophantine equation (named for Diophantus of Alexandria, a third century Greek math

Re: [Tutor] Problem

2016-08-29 Thread Shahan Khan
Thankyou so much for taking the time it really means alot. I'll change the code and try again. I have just one question what purpose does " {} " serve here? Sent from my iPhone > On 29-Aug-2016, at 2:30 AM, zakaria wrote: > > if you print the values of a, b ,c that satisfy and don't satisfy th

Re: [Tutor] Problem

2016-08-29 Thread shahan khan
#x27;b=',b,'c=',c if mc==55: print 'For 55 McNuggets:''a=',a,'b=',b,'c=',c Result: For 55 McNuggets:a= 1 b= 1 c= 2 For 53 McNuggets:a= 1 b= 3 c= 1 For 50 McNuggets:a= 2 b= 2 c= 1 For 53 McNuggets:a= 4 b= 1 c= 1 Two questions: 1) why is it printing bac

Re: [Tutor] Problem

2016-08-29 Thread shahan khan
Yes i format my code but i can't figure out this new problem On Mon, Aug 29, 2016 at 3:20 AM, Joel Goldstick wrote: > On Sun, Aug 28, 2016 at 10:46 AM, shahan khan > wrote: > > Hello > > I'm teching myself Python using MIT opencourse ware. I'm a beginner and

Re: [Tutor] Problem

2016-08-29 Thread Shahan Khan
Sent from my iPhone > On 29-Aug-2016, at 5:18 AM, Danny Yoo wrote: > >> On Sun, Aug 28, 2016 at 7:46 AM, shahan khan wrote: >> Hello >> I'm teching myself Python using MIT opencourse ware. I'm a beginner and >> have some what knowledge of c and c++. I&