₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,249 members, 8,420,967 topics. Date: Friday, 05 June 2026 at 03:29 PM

Toggle theme

Tarvel's Posts

Nairaland ForumTarvel's ProfileTarvel's Posts

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

ProgrammingRe: I need assistance with this Python Problem by Tarvel(op):
DrLevi:
You assign the answer to the same variable

a = int(input())

while a > 0 : #You don't want an infinite loop
a = a/2
print(a)

This is what I understood from the question
I want an infinity loop, I want it to continue giving me the output of a but with the consecutive answers till I get 1 as my answer
ProgrammingRe: I need assistance with this Python Problem by Tarvel(op): 2:34pm On Jan 07, 2021
DrLevi:
You assign the answer to the same variable

a = int(input())

while a > 0 : #You don't want an infinite loop
a = a/2
print(a)

This is what I understood from the question
Please check the picture above, thanks
ProgrammingRe: I need assistance with this Python Problem by Tarvel(op): 2:34pm On Jan 07, 2021
This is what I'm trying to figure out

ProgrammingRe: I need assistance with this Python Problem by Tarvel(op): 1:57pm On Jan 07, 2021
Tarvel:
Good afternoon, I need assistance

For example

a = int(input())

while True:
Print ( a // 2)

The problem is how do I make variable a equal to the next answer, and then the next answer equal to the next?

Let's say a = 10
It'll print 5
How do I make variable a equal 5 so that it'll automatically print (5 // 2)
And then print (2 // 2)...

I'm not sure if I explained it properly, but I need assistance. Thanks in advance
I've modified my question
ProgrammingRe: I need assistance with this Python Problem by Tarvel(op): 1:48pm On Jan 07, 2021
Anybody?
ProgrammingI need assistance with this Python Problem by Tarvel(op):
Good afternoon, I need assistance

For example

a = int(input())

while True:
Print ( a // 2)

The problem is how do I make variable a equal to the next answer, and then the next answer equal to the next?

Let's say a = 10
It'll print 5
How do I make it print (5 // 2)
And then print (2 // 2)...

I'm not sure if I explained it properly, but I need assistance. Thanks in advance
PoliticsRe: Nigeria Army Develops New Helicopter Locally by Tarvel(m): 8:50pm On Jan 06, 2021
FarahAideed:
Tail rotor too small to counter the rotation of the main fuselage

Main and tail rotor have no ability to feather so this is dead on arrival
Since you can know all these vocabularies, you should be able to buil your own sir undecided
BusinessRe: :( by Tarvel(op): 1:46pm On Jan 03, 2021
Mide3367:
6th September 2020 Or 2021?
2021
Business:( by Tarvel(op):
sad
Music/RadioRe: What Are Your Favourite Online Radio Station? by Tarvel(m): 11:30pm On Jan 02, 2021
yYot:
I travelled out of my base to somewhere remote in kwara state. Luckily, there is strong internet connection but no radio station. What are your favourite online Radio?
Royal FM, in Kwara state
PhonesRe: Brand New Redmi 9c 3/64gb For Sale (SOLD) by Tarvel(m): 7:03pm On Dec 27, 2020
Swap?
CultureRe: Hope Labelled A Witch Years Ago, Becomes A Wedding Best Man In Akwa Ibom by Tarvel(m): 10:23pm On Dec 22, 2020
shocked

TV/MoviesRe: DC EXTENDED UNIVERSE (FILM) by Tarvel(m): 9:39pm On Dec 21, 2020
nani667:
lipsrsealed
Covid-19
ProgrammingRe: I Seriously Need Help by Tarvel(op): 10:34pm On Dec 08, 2020
Donpre:
pdfdrive
zlibrary
Okay, thanks, again
ProgrammingRe: I Seriously Need Help by Tarvel(op): 4:24pm On Dec 08, 2020
Donpre:
You have a problem-solving skills problem not a programming one.

Basically a calculator is just input and calculation.

Can you get input from the user?... Yes
Can you calculate an expression?... Yes

Can you get an input calculated?... Calculator.

It works by breaking down large problems into very smaller ones and building up from what you can do to what you need to do.

You need to get books on how to solve problems.
Some I have are "Think like a Programmer", "Classic computer science problems in python"... I haven't even read them yet but they might help you get into the process of breaking down large problems.

Ultimately, you just need to build more and attempt more problems, we learn by experience. Even apprentice carpenters get confused on how massive roofs are made but by making them or watching them being made, he learns.
Watching tutorial to do it is very good, but not learning how they are doing it is an error on your part. It not about the "if the works", but about "How does it work and can I do it myself next time"


Good luck!
Thank you.

Can I get the books?
ProgrammingRe: I Seriously Need Help by Tarvel(op): 12:10pm On Dec 08, 2020
Donpre:
So your problem is not that you don't know these things but don't know how to apply them in solving problems?
For example, if I was asked to build a calculator, one that takes input and continues calculation with the same input, I'd have to rewatch the tutorial on how to do it. If asked to do it again next week, I'd still have to rewatch the tutorial again
ProgrammingRe: I Seriously Need Help by Tarvel(op): 11:45am On Dec 08, 2020
Donpre:
What exactly did you learn those 4 times? Like list the things

Did the book you used give you exercises and did you do them?

What can you say "I definitely Know this" and what will you say "I've read this before but can't remember how it works"

Give answers to the above question then maybe we'll find out what you're doing wrong
Some of the things learnt:
Strings, Integers, lists, if, elif, else statements, while loops, some functions, defining functions, for and in statements, inputs...

There were no exercises (python for dummies)
But someone recommended automating the boring stuff with python, I'll continue with that, it has some exercises
ProgrammingRe: I Seriously Need Help by Tarvel(op): 12:39am On Dec 08, 2020
Karleb:
I think Github and competitive programming might be too much for a newbie. cheesy

What I believe you need is simple challenges like printing 1 - 10 via loop. Printing prime or even numbers in a loop and all those.

If the simple challenge seem hard, Google the answer. If there is something you don't understand in the answer, Google it.

Make Google your friend.
Thank you
ProgrammingRe: I Seriously Need Help by Tarvel(op): 12:28am On Dec 08, 2020
Deicide:
Go into competitive programming if you want to be familiar with the language. There is leetcode, hackersrank etc try to solve many problems. You would also learn a lot from other people.

When you are now comfortable with the language try to start a project or you could help In open source project, there are so many small project you can help with on GitHub this would help you familiarise yourself on how real world code looks like. Good luck.
Thank you
ProgrammingRe: I Seriously Need Help by Tarvel(op): 12:27am On Dec 08, 2020
stanliwise:
You knew something, but the problem is this!
You don’t have practical experience yet moreso judge yourself by what you know you can do(abilities) with python rather than some online challenge which most times are not structured properly.

If the problem was not understanding some concept then it means you don’t have a lot of knowledge about Phython.

My advise is that you get a complete e-book or complete video tutorial and follow all through. Then from there learn how to find real life experience.

We are all in the journey, even me sef still dey learn everyday and meeting new concepts that I will be like huh
Thanks, can you please suggest an eBook?
ProgrammingI Seriously Need Help by Tarvel(op): 6:01pm On Dec 07, 2020
This is the 4th time I'll be going through python basics, the last time was during the lock down I couldn't focus cos of WAEC, now I'm done with all SSCE and I don't want this pre-admission period to go to waste


I restarted learning 2 weeks ago with my phone (no system). I've been going through PDFs and video tutorials. I'm kind of familiar with somethings so I choose to ignore them... I tried a python challenge on Solo Learn but it was like I knew nothing


How did you guys learn Python??
ProgrammingRe: Cybersecurity Community For Starters by Tarvel(m): 6:19am On Dec 07, 2020
Interested
ProgrammingRe: Sites To Get Paid Courses For Free?? by Tarvel(op): 10:57am On Dec 05, 2020
arabmoney14:
Check my previous post. I answered such question recently
Thank you
ProgrammingRe: Sites To Get Paid Courses For Free?? by Tarvel(op): 9:35pm On Dec 04, 2020
Nawa o
51 views no reply
ProgrammingSites To Get Paid Courses For Free?? by Tarvel(op): 11:27am On Dec 04, 2020
Good day, can I get sites that have paid Courses for freehuh?

Thanks in advance
PhonesRe: Who Wants To Swap Phone O by Tarvel(op): 6:46am On Nov 21, 2020
yanabasee:
Can I swap my phone for your love?
Kaii cry

Bros why na
InvestmentSuprise Me Please by Tarvel(op): 4:42pm On Nov 20, 2020
Someone should do give away for me, comman bless me pleaseee kiss grin


Bitcoin address:
bc1q3l3yvxv0j4d4vq2tx6cweup0zn984tn95wrzts


Thanks in anticipation grin grin
PhonesRe: Who Wants To Swap Phone O by Tarvel(op): 9:07pm On Nov 14, 2020
fados4sure:
With Note 9s?
VIVO Y11 grin
PhonesRe: Who Wants To Swap Phone O by Tarvel(op): 10:29am On Nov 14, 2020
fados4sure:
I'm currently using Redmi 9C and I'm looking forward to swapping with Redmi Note 9S
Will you swaphuh
PhonesRe: Who Wants To Swap Phone O by Tarvel(op): 1:51am On Nov 10, 2020
Newman20:
Tecno spark 4 for vivo y11...


Well maybe if the OP is a tech illiterate you'd have a chance.
Even if I was tech illiterate, the way they bash Transsion phones on Nairaland is too much, I'd rather use a Java phone
PhonesRe: Who Wants To Swap Phone O by Tarvel(op): 1:45am On Nov 10, 2020
SILENTandSMART2:
Let us swap it with my itel s16 and i will add #1500 to it, with three hungry man indomie and 4 pack of minimie chin chin wink


Quote me if you're ready wink
God forbid bad thing

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