₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,324,996 members, 8,419,859 topics. Date: Thursday, 04 June 2026 at 03:46 AM

Toggle theme

Hello Python Programmers Check My Small Projects - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHello Python Programmers Check My Small Projects (1545 Views)

1 Reply (Go Down)

Hello Python Programmers Check My Small Projects by obidavido(op): 9:08am On Oct 24, 2016
print("FUTURE JOB PRANK="wink
name = input("name: "wink
age = int(input("age: "wink)
number = int(input("choose a number (1 to 9): "wink)
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"wink
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:
I thought it was a real project sef
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! angry sad
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)
Re: Hello Python Programmers Check My Small Projects by Nascimento(m): 6:42am On Oct 27, 2016
nelsonchrisx:
Funny code, but pls how can results ever be == age
when according to your code results == int(Number + age)
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.
Re: Hello Python Programmers Check My Small Projects by obidavido(op): 12:47pm On Oct 27, 2016
Nascimento:
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.
Thanks bro
1 Reply

Hello! Python Programmers Let's Meet Here!Python Programmers Lets Meet Here!!!Programmers Check In Here234

Port Harcourt ProgrammersSmart Hotel(hotel Management System)Thread Unpublished