Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,152,849 members, 7,817,515 topics. Date: Saturday, 04 May 2024 at 01:35 PM |
Nairaland Forum / Science/Technology / Programming / Hello Python Programmers Check My Small Projects (1420 Views)
Hello! Python Programmers Let's Meet Here! / Python Programmers Lets Meet Here!!! / Programmers Check In Here (2) (3) (4)
Hello Python Programmers Check My Small Projects by obidavido(m): 9:08am On Oct 24, 2016 |
print("FUTURE JOB PRANK=" name = input("name: " age = int(input("age: ") number = int(input("choose a number (1 to 9): ") job = [ "doctor", "engineer", "teacher","pilot" ] results=int( number + age ) if results == 18 or age == 18: print("hello", name , "you are" , age , "years old and your future job is", job[0]) else: if results == age or age == results: print("hello", name , "you are" , age , "years old and your future job is", job[1]) if age > 18: print("hello", name , "you are" , age , "years old and your future job is", job[2]) else: if age < 18: print("hello", name , "you are" , age , "years old and your future job is", job[3]) print("PROGRAM ENDED" 1 Like |
Re: Hello Python Programmers Check My Small Projects by zzzzy: 4:17pm On Oct 24, 2016 |
I thought it was a real project sef |
Re: Hello Python Programmers Check My Small Projects by melodyogonna(m): 4:53pm On Oct 24, 2016 |
zzzzy:me too |
Re: Hello Python Programmers Check My Small Projects by asalimpo(m): 11:08am On Oct 25, 2016 |
was expecting a list of noble efforts. clickbait! |
Re: Hello Python Programmers Check My Small Projects by Nobody: 11:46pm On Oct 26, 2016 |
Funny code, but pls how can results ever be == age when according to your code results == int(Number + age) 1 Like |
Re: Hello Python Programmers Check My Small Projects by Nascimento(m): 6:42am On Oct 27, 2016 |
nelsonchrisx: Thank you. My thoughts exactly. Op it seems u just started learning python. Keep it up Bro. Don't let anyone tell u what u posted was rubbish. My only advice is always look out for comments that tends to correct your codes. Happy coding. 1 Like |
Re: Hello Python Programmers Check My Small Projects by obidavido(m): 12:47pm On Oct 27, 2016 |
Nascimento:Thanks bro 1 Like |
(1) (Reply)
Andela: Who Has Passed Stage 3 Of 44 Home Study Assessment? / Vtu Api / Designing Websites With Macromedia Flash
(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. 9 |