₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,102 members, 8,420,348 topics. Date: Thursday, 04 June 2026 at 05:10 PM

Toggle theme

Phililp's Posts

Nairaland ForumPhililp's ProfilePhililp's Posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 (of 16 pages)

EducationPlease Has Anybody Gotten His/her Jamb 2017 Exam Slip???? by phililp(op): 12:15pm On May 05, 2017
been waiting like hell.. dunno if anybody has gotten his..

please indicate if u have.. thanks


lalasticlala, mynd44, seun. pleas help to fp
CrimeRe: Nigerian Woman Pulls Off Her Cloth While Trying To Fight In India. Photos/video by phililp(m): 1:00am On May 05, 2017
toseen7:
Yeah.... nice, but not too nice.
She shouldn't have remove her cloth...
yu no see say na as she remove her clothes na im those guys come chill?? ..

lol.. they come know say she mean am..

tiri gbosa for that woman there jare.. thats the spirit. as e d hot
Jobs/VacanciesRe: Andela: IT Training And Job by phililp(m): 6:32pm On May 04, 2017
pls those that suceeeded in getting to the boot camp. pls dont forget to make for us some videos of some activities plssssssss

wud love to see what its like
ProgrammingRe: What Is The Highest Number Output By This Function... by phililp(op): 9:43am On May 03, 2017
Nascimento:
Please what are you returning?
lol.. i've got it.. my bad
RomanceRe: Need A Single Guy by phililp(m): 11:27am On May 02, 2017
misbree:
hi am new here need a single guy for a serious relationship am ready to meet u add me watsapp 07088596447
wake up! its 2017 already..

nonsense..
came to nairaland to look for relationship.. abi u dont know were flirchi and hitwe dey??
Science/TechnologyRe: Homebuilt Gas Turbine Engine For Helicopter Propulsion. by phililp(m): 7:44pm On May 01, 2017
bros drop me ur accnt number... a little is somthing.


just make certain u be on the air ........... i wana cee a nigerian independently be on the air(all locally made)

lets start donating
WebmastersRe: You Thinks You Are A Good Web Designer.... Fall In; Pick The Challenge by phililp(op): 7:34pm On May 01, 2017
Adesege:
Yimu!

But u sef, wetin dey hard for that thing wey you no fit do?

As a designer, the first thing is to pick your tools.

What tools will you be using to build it?
i aint much into web designing.. am taking the software development route..

so i just learnt a bit of html5 and css3.. just to have the knowledge
WebmastersRe: You Thinks You Are A Good Web Designer.... Fall In; Pick The Challenge by phililp(op): 7:08pm On May 01, 2017
[quote author=Adesege post=56110652][/quote]lmao**... d tin weak me o!
ProgrammingWhat Is The Highest Number Output By This Function... by phililp(op): 6:58pm On May 01, 2017
hello guys.. i was taking a python quiz in programming tutoring site and came across this question

i knew the anser but the site said am wrong abeg helep me see..



What is the highest number output by this code?
def print_nums(x):
for i in range(x):
print(i)
return
print_nums(10)


i put 9 and it said wrong... abeg whats the right answer

abi am i wronghuh

WebmastersRe: You Thinks You Are A Good Web Designer.... Fall In; Pick The Challenge by phililp(op): 10:33am On May 01, 2017
you can re-read my post bro..


if you wish.. share the source code

nobody needs ur source code... this is just a challenge to excercise ur abilities

just post this screenshot of the design .... thats all
WebmastersYou Thinks You Are A Good Web Designer.... Fall In; Pick The Challenge by phililp(op): 9:06am On May 01, 2017
most people that call themselves web designers today are just people who knows how to use CMS.
for me; a good web designer is one who is able to produce any design on the web.

so; recently an indian friend of mine asked me if i was good at web designing; i agreed..
then he gave me this to design... to be sincere i cudnt

so i wana see a real web desingner on NL...

design it; take a screenshot of it on the browser and upload here lets see

and if u wish.. share the source code

ProgrammingRe: Pythonists Please Help!!....def Functionname(self)...confusing Me.. by phililp(op): 11:17pm On Apr 30, 2017
hey fleshbone.. looks like we both in same route..

i just started learning python a couple of weeks ago.

u can add me up on fb lets share ideas..

username = "philips chike"
linkedin: https://www.linkedin.com/in/philip-chike-54780313a/


thanks
ProgrammingRe: Pythonists Please Help!!....def Functionname(self)...confusing Me.. by phililp(op): 11:12pm On Apr 30, 2017
TechRex:
Dont get you sir
dun worry techrex.. have got it..

and thanks alot for ur concern sir..
Jobs/VacanciesRe: Andela: IT Training And Job by phililp(m): 3:09pm On Apr 30, 2017
chigozie391:
I wanted to apply... But only female us allowed
yea.. thats for now. i think next would consist of male too.


but wonder why most girls run away from coding

i love girls that can code..
ProgrammingRe: Pythonists Please Help!!....def Functionname(self)...confusing Me.. by phililp(op): 3:01pm On Apr 30, 2017
fleshbone:
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
thanks for ur contribution fleshbone... but i think nobody has gotten my point

lemme make it clear

if i want to create an instance variable that is not a parameter. and no argument is supposed to be passed to it..
do i stiill need to tag it with selfhuhhuhhuhhuhhuhhuhhuhhuhhuh??


example

class customers:
-----def add_two_nums(self; num1; num2)
-------outcome = self.num1 + self.num2
-------return outcome


[center]or[/center]

class customers:
-----def add_two_nums(self; num1; num2)
-------self.outcome = self.num1 + self.num2
-------return self.outcome
Jobs/VacanciesRe: Andela: IT Training And Job by phililp(m): 11:19am On Apr 30, 2017
so at the end of the boot camp.. there is an assessment and the best participant are called for interview and the rest go home righthuh
ProgrammingRe: Pythonists Please Help!!....def Functionname(self)...confusing Me.. by phililp(op): 11:00am On Apr 30, 2017
TechRex:
the self variable is a constant variable taht should be in any method parameter declaration,..

The self variable makes it easier to access the class/program variables e.g

socket = Socket.socket()
request = ""

def processRequest(self, request):
self.request = request

It is very important to add the self variable in your method parameters, some programmers might say it is not important, but in the actual sense it is **** important

When you start coding with bigger erp frameworks like odoo 10, you willl really need to develop the norm of using self in you method......
what if u wana create a variable in the method.. that dont need to be supplied argument..
like say:

def addition(self; num1; num2)
result = self.num1 + self.num2
return result

now is the result supposed to be self.resulthuh??
ProgrammingRe: Pythonists Please Help!!....def Functionname(self)...confusing Me.. by phililp(op): 8:42pm On Apr 29, 2017
thanks bro..

alot
Nairaland GeneralRe: Huge Cobra Killed In My Compound (Photos) by phililp(m): 10:30am On Apr 28, 2017
when lala hears of this
TV/MoviesRe: Plz Help! How Can I Download 10days In Soundcity And A Trip To Jamaica By A Y by phililp(m): 10:29am On Apr 27, 2017
use Youtube so u can what before download....

download with savefrom.net

hope it helps
ProgrammingPythonists Please Help!!....def Functionname(self)...confusing Me.. by phililp(op): 10:25am On Apr 27, 2017
dear programmers..

am among those that cudnt make it to Andela in the previous application so getting set for the next.

so.. am really confused about the self. parameter in python... here is ma code

class Customers:
account_balance = 0.0

def _init_(self):
self.account_type = str(input('account type:'))
self.name = str(input('enter name of customer:'))
self.account_balance = 0

def withdrawal(self):
self.amount = int(input('specify amount you want withdrawal:'))
if amount > self.account_balance:
print('sorry; insufficient balance')
else:
self.account_balance -= amount
return self.account_balance

def deposit(self):
deposit_amount = int(input('please enter deposit amount:'))
self.account_balance += deposit_amount
print('you just deposited ', deposit_amount, ' and you new balance is' , self.account_balance)


customer1 = Customers()
customer2 = Customers()


the problem is about self..

now i created a class Customers and a class variable called account_balance
i know that if i want to make use of the class variable in any of the modules in class Customer
i wud simply do: self.account_balance

my question is this:

if i want to create a variable in a module; do i still need to tag it with the self.?
like i did in the def widrawal(self)

def withdrawal(self)
self.amount = ........


or shud i just define the variable without the self?

would appreciate a ditailed answer.. thanks
Jobs/VacanciesRe: Andela: IT Training And Job by phililp(m): 8:04am On Apr 26, 2017
thank God for u voltz Good to see someone dream comes tru..

and voltz. when u get there make sure u make alota videos to keep inspiring us

love watching videos from andela... specially that mannequin.

can i mail inbox u? voltz so i keep knowing what its like to be on the inside... couldnt make it
but probably in the next application. am gonna do

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 (of 16 pages)