NewStats: 3,265,247 , 8,186,122 topics. Date: Saturday, 14 June 2025 at 05:00 AM 671r56z3e3g |
(1) (2) (of 2 pages)
![]() |
Hmmm...lovers of mrush and titan wars! Let's us gather here and talk. I need a toon in Titan Wars with high stats. In return, I'll give out a toon in mrush.net. Who's in?
|
![]() |
saaron:
Satanic location?
|
![]() |
slawormiir:
Simple...u should have said that Messi plays better than Ronaldo instead of trying to play 'innocent'. Why telling us you don't involve urself in such arguments when u are already 'preparing' one?
|
![]() |
incogni2o:Thanks bro! |
![]() |
incogni2o:Thanks bro! |
![]() |
Hello everyone. Abeg this lock down don tire me. Pls who wants to be my WhatsApp partner; gossip partner, reading � partner, Python partner, Music � partner and Science project partner? Biko, ẹjọ́, please drop ur num make I add you. Pls ooo. Help a brother in need of an active WhatsApp partner. I am expecting you people ooooo
|
![]() |
Thanks for the opinion. I was talking in view of the . I know the index starts from 0. You wouldn't expect the to type 4 and the program return the 3rd value he entered.
|
![]() |
Phew!! I'm sorry for that long break. I know many people for don vex. I'm sorry. I'm back with an exercise but this one is kinda simple.
Exercise 7 Write a Python program that accepts data from the be it integer, string, char, float or double. The program stores these in a container/array (list or tuple) Finally, the program accepts an index from the and uses the index to find the respective element if the array created. The program then prints the result.e.g., Let's say a inputs the following: Sam 12 Ben Lagos 22 Tolu The then input 3 as the index, the program must return 'Ben' as the output. Collinsanele Taofeekdboy kensmoney Daddyshome Zabiboy and lots more...lol! |
![]() |
Exercise 6 Write a Python program that accepts an integer number and checks if it is an even number or an odd number. Pls don't use the % (modulus) operator. Let's see some genuius. |
![]() |
kensmoney:
I love ur approach.....
1 Like |
![]() |
Zabiboy I've seen it. And it's a nice challenge. Bring in more!
|
![]() |
Zabiboy:No problem at all. I go soon reach u sha. And about the project, I go check am now |
![]() |
Behind you Treborblue ride on gallantly...
|
![]() |
Exercise 5 Write a Python program that accepts a string and a character from the . The program checks the number of times(frequency) the character appeared in the string. E.g. If the enters "Michael Faraday" as the string and enters 'a' as the character, the program should display: There are 4 a in Michael Faraday! Collinsanele Taofeekdboy kensmoney Daddyshome Zabiboy |
![]() |
OlamigokePhilip:That's a good suggestion bro! That's good! |
![]() |
Taofeekdboy:Wish you the best bro! Always the best! |
![]() |
Collinsanele Taofeekdboy kensmoney Daddyshome Zabiboy hmm....who else ooo? Let's get to business. Pls, let's try to read the question in details first. If the question asks for the s' input, then we should include an input statement. Zabiboy we need to talk ooo. This one wey I no see you.... Exercise 4 We are doing some 'loop and looping stuffs' today. Write a Python program that accepts the name of a student, matric number, course code and the score he/she got in the course. E.g Name: John Alfred Matric. No.: MUC/CS/014/0882 Course Code: CMP 212 Score: 100 The program then print the result as: John Alfred, MUC/CS/014/0882, CMP 212, Grade A Using this grading table. 100-95 A 94-85 B 84-70 C 69-60 D 59-50 E 49-0 F Corrections, advices, suggestions and opinions are highly welcome! 3 Likes |
![]() |
Runningwater: That's a wonderful approach Runningwater Kudos! Buh u just defined the function. Anyway, I understand. That's gud! 1 Like |
![]() |
kensmoney: Nice one bro...buh the question mentioned 'ACCEPT from ' and I can't find input(). Also just has Collinsanele said, you don't need to slice at all. However, you did great. Well done kensmoney |
![]() |
Taofeekdboy:A nice start bro....still need some fixing sha! Kudos! |
![]() |
Zabiboy:Bro, I never said these were projects! They are - just as you said - simple exercises to keep 'things' busy. There is no bad if you also contribute to this. And I really would love to see one of your projects! |
![]() |
Ride on bro! Ride on!
1 Like |
![]() |
![]() |
Collinsanele, Taofeekdboy, kensmoney another one is here! Exercise 3 Write a Python program that accepts day, month and year from the and prints the result in this form: Today is 23/04/2020 For example, Input: day = 21 mnth = 07 year = 2010 Output: Today is 21/07/2010 Good luck guys! 1 Like |
![]() |
Collinsanele:
Collinsanele, there was an IndexError stating 'list index out of range'
|
![]() |
kensmoney:
kensmoney, I love your 'idea of thinking'. You got it right sha. Good job bro!
|
![]() |
Taofeekdboy:
There was a space and a hypen in the 2nd argument of replace() Apart from that, you got it right! Bravo Toafeekdboy!
|
![]() |
This is another exercise. Exercise 2 Write a Python program that accepts a string/sentence from the . The program then changes all spaces to underscores. Finally, it prints out the final result. Good luck guys! 1 Like |
![]() |
This is my solution..... #Obtain the domain (thapar.edu) name from the URL #http://www.thapar.edu/index.php/about-us/mission url = "http://www.thapar.edu/index.php/about-us/mission" print ("Getting 'thapar.edu' from ",url) list_url = url.rsplit("/",3) print(list_url) a = list_url[0] str1 = str(a) print("\n",a) result = str1.split(".",1) print("Finally, we now have....\n",result[1]) |
![]() |
Collinsanele:you're making a mistake.... |
![]() |
Collinsanele:You are wrong... |
(1) (2) (of 2 pages)
(Go Up)
Sections: How To . 29 Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or s on Nairaland. |