Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,081 members, 7,818,236 topics. Date: Sunday, 05 May 2024 at 10:52 AM

Zizytd's Posts

Nairaland Forum / Zizytd's Profile / Zizytd's Posts

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 19 pages)

Programming / Re: A Thread For Tutorial On Python Programming by zizytd(m): 11:47am On May 24, 2021
try and except is to catch possible error messages , for this why I used ValueError because if you put int("bob"wink you will get a ValueError error. If you don't put the type of error it catches all kinds of errors(eg ValueError,TypeError,OsError etc). So it will still work but the only problem is when you want to catch a particular type of error message.
deept:
@zizytd,

also in your code, after the except you put valueerror, is that necessary?
Programming / Re: A Thread For Tutorial On Python Programming by zizytd(m): 11:40am On May 24, 2021
nice , weldone . I just started learning late last year but with constant practice, I have become so much better.
deept:
thanks @ zizytd

i see what you did using a list. I am just starting on python and this was an exercise on loops and iteration, haven't really explored lists. This exercise took a long time for me to solve but learnt a lot on what not to do. eventually got it right:


while True:
num = input("Enter a number: "wink
try:
int(num)
except:
print("Invalid input"wink
continue
num = int(num)
if type(num) == int:
break

largest = num
smallest = num

while True:
num = input("Enter a number: "wink
if num == 'done':
break
try:
int(num)
except:
print("Invalid input"wink
continue
num = int(num)
if num > largest:
largest = num
elif num < smallest:
smallest = num
print(f"Maximum is {largest}"wink
print(f"Minimum is {smallest}"wink


Programming / Re: A Thread For Tutorial On Python Programming by zizytd(m): 8:45am On May 24, 2021

def min_max():
list_number = []
while True:
num = input("Please Enter a number: " )
if num == "done":
break
else:
try:
list_number.append(int(num))
except ValueError:
print("Invalid input" )
print(f"Maximum is {max(list_number)}" )
print(f"Minimum is {min(list_number)}" )

deept:
Hello guys,

could you help look at the code; this is what i'm trying to achieve but not quite getting the output desired

Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an appropriate message and ignore the number. Enter 7, 2, bob, 10, and 4 and match the output below.
Desired Output
Invalid input
Maximum is 10
Minimum is 2


num = input("Enter a number: "wink
largest = num
smallest = num
while True:
num = input("Enter a number: "wink

if num == "done":
break

try:
int(num)
except:
print("Invalid input"wink
continue

if largest < num:
largest = num
elif smallest > num:
smallest = num

#print(num)

print(f"Maximum is {largest}"wink
print(f"Minimum is {smallest}"wink

1 Like

Programming / Re: A Thread For Tutorial On Python Programming by zizytd(m): 11:01pm On Mar 01, 2021
Carstuff:
Hello guys. Is it true Python is optimized for data science?? Can it be comfortably used as a back end scripting language rather than say PHP??
Python is Multipurpose programming language. You can use it for backend programming but you have to learn some framework like django and flask.

1 Like

Programming / Re: Python: I Need Help With A Problem by zizytd(m): 8:12am On Jan 11, 2021
peacettw:


Perfect. Thanks a whole lot. Seems that I have so much to learn.

Is there like a community of python coders in Nigeria that I can join?

The more you practice the better you become. I don't have any idea about any community of python coders in Nigeria.
Programming / Re: Python: I Need Help With A Problem by zizytd(m): 11:33pm On Jan 10, 2021
peacettw:
Never mind, I have figured it out

dna = "CCTGTATGCCCAAGGGGTTTCGATCGTACGACTGTCAGTCAGCTAGCT"

l=list()
n= len(dna)/3
count=0

print(dna, "\n" )
while n>0:
j=dna[count:count+3]
count = count + 3
n= n - 1
l.append(j)
print(j)
print(l)

Look at the attached image after the print list(l), is it what you want?

you can also do it using for loop. it is shorter, see second attachment.

Programming / Re: A Thread For Tutorial On Python Programming by zizytd(m): 5:39am On Jan 10, 2021
Excallibur:
please bosses in the house familiar with pydroid 3 help!! I've been trying to upgrade my pip and this is what I keep getting
Use
sudo pip3 install --upgrade pip
Education / Re: Top5 Cheapest Countries For International Students To Study Abroad by zizytd(m): 12:21pm On Sep 11, 2018
Ejadike:
Bro, I greet you. Please what's the name of your school? Are you in scholarship? If yes can I apply as an HND holder for Masters or PGD? If no, what do I need to enroll? Thanks G.
Sorry for answering late. Am not in scholarship. To find more of German school go to travelling to Germany on travel section in this nairaland. You will be amazed on the information you will see there.
Education / Re: Top5 Cheapest Countries For International Students To Study Abroad by zizytd(m): 8:12pm On Sep 04, 2018
In Germany just even two states pay tuition fee. Even the states are even debating whether not to pay tuition fee. My semester fee is just 72euros. I school in a small town of 50000people. I speak little German but I don't find life difficult. Many people here speak English. Germany's language barrier is not as bad as people paint it.

3 Likes

Celebrities / Re: Emmanuel Quaye "Strika" Turns Beggar In Ghana by zizytd(m): 9:37am On Aug 21, 2018
MrBrownJay1:


thanks bro, almost fell for this BS!!!! here is him today....
This is Agu, Strika is another actor different from Agu. Agu is the lead actor.

4 Likes 1 Share

Travel / Re: Germany Set To Deport Over 30,000 Nigerians by zizytd(m): 8:06am On May 16, 2018
Germany is a good place to stay if you are a legal migrant. Oyibo people no dae like Nigerians. If you are genuine you have no cause to be worried.
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 10:44am On Mar 21, 2018
Mirastones:


Congratulations
Go n succeed


Thanks
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 6:13am On Mar 21, 2018
Interview date 19/02/2018
AM date 19/03/2018.


Na God sure pass

14 Likes

Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 2:43pm On Jan 30, 2018
Darrysindick:
Please guru in the house I need your expert input,

My interview is on the 9th of February and enrollment deadline is 28th of February, school resumes 1st of April..do u need to apply for an enrollment extension?

How many courier envelopes do I need to buy sirs and ma'am?
Which school ?
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 1:50pm On Jan 29, 2018
Litolysis:
No I have not tried booking. I am asking if I can go ahead to book appointment and later come back to complete the Blocked account processes. Do I need Blocked account information in other to book appointment online?
You can do that
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 1:23pm On Jan 29, 2018
Litolysis:
House please help a brother ooo this Fintiba Photo verification is giving me tough time ooo. Meaning am not done with the Blocked Account opening since few days now. I need urgent help please ooo. Can I go ahead to book interview date then later complete the Blocked account thing. Help a Brother please oooo

Kindly use a laptop to take the picture, make sure there is enough light when taking the picture.


Have you finally gotten a date?
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 12:40pm On Jan 24, 2018
Seriously Embassy need to be uploading the cancelled date, I booked 22nd march but my enrollment deadline is 9th April( which is not up to 6weeks.it is really terrible you can't see any cancelled date

2 Likes

Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 6:43pm On Nov 15, 2017
Perky89:


Yes oh
Perky did you go to unzik, set 2012
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 1:00pm On Nov 15, 2017
Perky89:


Yes oh

Which course are you planning to apply for in TUB? And pls send me the link
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 5:03pm On Nov 14, 2017
Perky89:


I don't think TU Berlin requires English test. I'm just waiting for their application period to start. Still looking for the start date though.
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 3:23pm On Nov 14, 2017
Perky89:


TUM, Koln, Passau, Paderborn, and Kiel. Still waiting for TU Berlin too
Applied for koln passau kiel and Bonn does tu Berlin require English test

1 Like

Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 1:39pm On Nov 14, 2017
Perky89:


Yes oo, i applied to 5 schools. Kiel is even my least choice grin

Which other schools, I applied for four schools.
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 11:29am On Nov 14, 2017
Perky89:


I didn’t notice, and I’ve sent my documents to uni assist already.

Same with me we should just wait for the response of Uniassist. I was just weak when I saw it. Hope u applied to other school
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 5:03am On Nov 14, 2017
Perky89:


Yea, I have

When last did u visit the site, requirements have changed. They now ask for gre and English test.
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 7:20pm On Nov 13, 2017
Perky89:


Yea me too, got admission into the same course, but they didn't agree to defer the admission. I applied late though.

I think someone said earlier that he was able to defer his, not sure of the course though?

The school don't defer hope you have applied again.
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 9:57am On Nov 12, 2017
Perky89:


Yes

Got admission for winter semester but the admission came late, so I have reapplied for summer cuz the school don't defer admission.
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 5:49am On Nov 12, 2017
Perky89:


Msc information engineering

Have u applied for msc information engineering?
Career / Re: Choosing The Right Career Path by zizytd(m): 5:19am On Aug 21, 2017
Shrekyfiona:
Hiya People.
I need ur urgent advice

I currently work with Stanbic Ibtc bank and earn 120k monthly(did not join as a graduate trainee), the bank is an amazing bank, so much respect for each other irrespective of rank and has the world best work environment (as far as am concerned) with great work-life balance.
Recently, am undergoing Access bank's graduate trainee recruitment exercise and am currently awaiting the TMI(Top mgt interview).
I have read lots of reviews abt Access bank and they are quite scary and crazy. The reviews painted the work environment and work-life balance black but I always try to convince myself that I wouldn't have such ugly experiences.
Now guys, am in dire need of ur advise. I plan quitting Stanbic for Access bank cos of the salary(heard Access pays 249+, yes am aware of the crazy bond) I also feel am gonna have an amazing experience joining as a graduate trainee and it will also mean me starting off nice am will be duly exposed positively but I don't know what awaits me there. I know training school awaits me though but am not scared of it, at the same time am not Einstein.
.Juxtaposing: Stanbic increases/ reviews salary annually according to performance, promotion is fair and transparent. Has unquestionable integrity, am currently doing my M.sc online at the university of south Wales and got a recommendation letter from my HR to the school, am so much at home with Stanbic but I really want to try something new and amazing


Dear Nairalanders and fellow bankers in the house, pls pls pls I beg you, kindly help a soul and guide me against making a mistake I might forever regret.

I don't want to ask for advise from colleagues as am still keeping my plans low and wouldn't want to shot myself in the foot.

NB: Am 24 and have worked in Stanbic for a year plus

U sent me a pm, I can't reply u, just email me directly on onyitoc@yahoo.com
Education / Re: 2017/2018 PTDF Scholarship Scheme (Overseas And Local) by zizytd(m): 11:45am On Aug 02, 2017
DreManuel:


I disagree, albeit your honest opinion. The words are advanced vocabularies and there is nothing foreign about them. The major controversy is the alleged leakage of questions and technical issues as per subject tests. But I think its rather late. The list should be finalized by now awaiting publication.

If the exam wasn't leaked many people believed that those vocabularies made the exam fair for everyone but the leakage proved otherwise.
Education / Re: 2017/2018 PTDF Scholarship Scheme (Overseas And Local) by zizytd(m): 2:09pm On Jul 28, 2017
DMainMan:


after d PhD interview. All results of PhD and MSc will b scrutinized further as PTDF are looking for cheap option though many people will get their choice. PhD interview will end today and results of d previous days has already been decided. PhD and MSc successful lists is usually released together.

Expect the list of successfuls latest first to second week of August. If selected, ensure u have international passport and admission for September entry. Those who need ATAS Certificate should apply for ATAS as soon as possible. U don't need scholarship confirmation.




good day, i applied for IT in oil and gas. what if i have an admission in IT, is it a must that the course must be related to oil and gas.
Travel / Re: General German Student Visa Enquiries Part 4 by zizytd(m): 6:55am On Jul 24, 2017
Wow part four, This is the testimony part. Welcome to a part of possibilities, part of admission letter, part of visa appointment dates and finally part of visa success.

1 Like

Travel / Re: General German Visa Enquiries Part 3 by zizytd(m): 5:50am On Jul 22, 2017
pompido:
Admission letters have been distributed at least 2 weeks ago. I will advise you email the international center and ask for the status of your application and if possible give you an email address to get a soft copy of the admission letter so you can proceed with visa application.

I know 2 people that already got theirs and we had to go to the office to push for it because they said they stopped sending soft copies and only send the original admission letter. The con of that is you have no clue if you got admitted or not because there is no portal for that.

So email them to first check your status and then try and force out a soft copy from them.

Cheers

P. S: I can't seem to reply new pm. Yahoo always says failure delivery to the Nairaland email address. Am I missing anything?


Thanks, this is my mail , pls mail me.

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 19 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 45
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.