Fleshbone's Posts
Nairaland Forum › Fleshbone's Profile › Fleshbone's Posts
Python is quite easy and its Object Oriented Programming. The language with the easiest syntax I've seen is SQL. Try it as well, though its database related. |
I have being learning for the past one Month. We can share and learn here sir! Am not on whatsapp. Nice meeting you. |
Try this -------------------------------------------------------------- Class sum_it: --- Def __init__(self, num1, num2): ------- Self.answer = num1 + num2 Def main(): ----Ans = sum_it(5,10) --------Print(answer.ans) Main() ------------------------------------------------------------------------ The above worked for me. I just tried it. Goodluck phililp. |
phililp:Here, I see the num1 and num2 as ur argument. 'Self.outcome = num1 + num2' I don't think u need to put self before them. I would try it too sha. |
Nawa |
In my opinion, the class being a class object, the def is ur method. We are suppose to initialize, therefore, u can use the built-in-function, __init__() constructor. The first arguement, self, is referring to the class name, and other arguement can follow. But where would the arguement land? Therefore, one need to create variables to hold this arguement when they're passed. To do this, Self.the_name_you_choose = one_ of_the_argument Self.the_name_you_choose = another_argument. After creating an instance (which is passing values into that class created) , one can then access this variables by 'classname.variable_name_in_the_class' Example Class point: #classname Def __init__(self, x, y): #initialising with a constructor Self.x = x #assigning classname.x Self.y = y #assigning classname.y Pt = point(5,6) #creating an object of classname Sum = int (pt.x + pt.y) #using the created object Print(sum) #print result I hope this help. I stand to be corrected as I started learning too less than a month now. phililp |
Yes! From My birth till date, Breathing is still an unimaginable miracle to me. God is the greatest |
GreenMavro:Its the official price from Toyota Nigeria Sir! Am only doubting if they actually bought new ones or they are refurbished! |
Abacha thank u for this unwilling investment u made for Nigerians. We have being getting returns and still expecting MORE. |
One Sided or Not, Am generally Satisfied with the Support the anti Corruption war is getting from the North! Even if its Only the North and the West that Support the War, its okay for me. |
This is a very Stup.id unjustifiable post! Make sure you Open another thread and also differentiate Buhari under GEJ and Buhari under Buhari too. Nigeria get better problems at hand. Na Buhari make them Hospitalize Bash Ali. #OurMumuDonDo |
What Brand of Vehicle would he assemble. He's a first hand Toyota dealer. This guy is the Reason Toyota price has doubled between a Year! what is he coming to offer? Am from the North. Innoson has nothing to fear from Elizade! |
IMAO, I think people are not being fair to Kemi and Emefele. When it seems bad, the blame was on them. Now its good, its on Osibanjo. But what actually happened? They noticed with the decrease in the foriegn reserve, its hard to invite investors. The crash in the price of oil was a factor too! Now that the price is appreciating, they waited for the foreign reserve to hit $30bn before floating the market with much dollar, and a new policy to ease the suffering. It might have being coincidental, but they all deserve credits. CBN, MInistry of Finance and the Presidency. God Bless Nigeria. |
Am not a blogger but am very impressed with the detailed tutorial. Good work! |
120km. God bless Gear 2 of Toyota Hilux. The power in that gear is always amazing. |
I won't give up on this Nation! But I just don't understand why we are the way we are! The White took advantage of us until 1960. But what have we done for ourselves from that time? |
This kinda news freaks me no more. I admire our hardwork when it comes to reading! But C'mon! Is that it? We need to start channeling all these effort into REALITY. Solve a Nigerian problem with the knowledge. Investigate what the common man in Jigawa, Akure or Nnewi lacks. Make life easy for them with a cheap and affordable solution! Reliance on the goverment alone is still our greatest setback. Private investors, please learn to endure a long-term investment. I was at an engineering Competition in July and I was impressed! We have the potential to solve our problems. All we need to do is start somewhere and encourage continuity. God Bless Nigeria. |
International Crime Lord |
I guess Buhari's meeting with so many Clergy lately to christanizing Nigeria is beginning to hold water. Just Saying. |
At the tail end, it still came to this! |
I guess the $18 million house belongs to a bricklayer too. Not that am in support of the AlJazeera thing though. |
The Problem of South-South remains their leaders! |
The Herbalist is from the North! |
NIGERIA and 'UNBELIEVEABLE'
|
Oboi! His supporter though!
|
Hmmmm! What alternative can we possibly have ? In my own opinion, the FG should risk an try to construct a dam capable of producing 10MW. This is free from greenhouse effect and vandalization! Contruction is about four years! Solar is very expensive! Gas last for about four years only! And coal produce serious greenhouse effect plus am seriously experiencing climate change here in Kaduna! Our population have outgrown the power the FG can supply! The best would have being nuclear but abeg I no fit shout ooooo. Its never for Nigerians! |
FUNNY KARMA! Bloggers trying to generate traffic on the Chief Blogger! |
I think this is the point Linda has to stop getting into wizkid's ish! Meanwhile, why is that whenever she has news about wizkid, its a BAD NEWS. Why didn't she report the house he reportedly bought abroad? Rather she posted after knowing it was on rent(if it's even true). Wizkid is pulling his friends into this sh*t! He's a naughty youth and always like embarassing elders using his friends ( Remember the female artist 'Saeon' he embarssed on tv.) Hope it doesn't end up that way this time! |
Calabar and Dog
|
MTN They've got me going crazy last few months! Maybe its due to network errors! But even after calling the customer care, they have to suffer me for days before my issue is resolved! |
This should ease the suffering for the main time. FG really need to find a longlasting solution to this scarcity problem! |
herbie27:Fool! How many times haven't you called BUhari? |

