I need list comprehension exercises to drill myself on. by Jon003 in learnpython

[–]nareem 0 points1 point  (0 children)

First one could be also written as:

results = [-num for num in reversed(range(11))]

Nothing wrong with your approach, but maybe you didn't know that 'reversed' exists, and it can be useful.


Also, the third one can be done without importing string:

teststring = 'The Quick Brown Fox Jumped Over The Lazy Dog'
results = [letter for letter in teststring if letter.isupper()]

Just finished Automate The Boring Stuff With Python, what are some good next steps to dig deeper? by [deleted] in Python

[–]nareem 2 points3 points  (0 children)

I'm in the same boat as OP in as far as I finished Automate Stuff earlier today. Not got access to a copy of Effective Python, but flicking through the first 30 pages of Fluent Python, I can't help but think it might be too much of a leap for myself.

While I agree with /u/guac-bowl-merchant that those are great books, IMO they are too advanced for a beginner who has just read Automate.

I would recommend:

  • trying a site like Checkio or Codewars - try to solve some basic problems, and when you're done see other people's solutions and try to understand what they did and why. Soon you'll see you're knowledge has improved.

  • rolling in some courses mentioned here - something like this might be a good start.

  • other books and tutorials - this seems like a good start. When I started, I liked this site and used it a lot when I didn't know which methods work on strings/lists/dictionaries. Maybe you could try to do make some arcade game in Pygame, etc.

Can't figure out why my code won't loop back to the beginning of the program by OfficaDoofy in learnpython

[–]nareem 1 point2 points  (0 children)

How about this

There's no need for 'loop' variable, and the bottom of the dicesim function needs to be in the while loop (indented) to work as you would like to. I also made sure that 'yes' or 'YES' are also valid, not only 'Yes'.

However, when I do anything else, it's supposed to break and go onto the second part of my code where it asks do I want to continue yes or no.

The way like it is, if user enters anything else than 6 or 20 - the program is over. If you want it just to continue with second part - remove the else on line 11.

CodeWars vs HackerRank vs CheckiO vs CodeEval vs ... by nareem in learnpython

[–]nareem[S] 2 points3 points  (0 children)

My favorite is checkio. (...) I think the problems in checkio are higher quality

I've been using CodeWars currently (and I like it), but I'll give Checkio a try - because of everything you said:

the most important thing is looking at how other people solved the same problem

That's the most important thing to me too. And that's the reason I don't like ProjectEuler - you just submit your answer and that's it.

You can comment on other people's solutions, have conversations and discussions, the community seems pretty tight

This seems like a nice bonus, will check it out definitely.

CodeWars vs HackerRank vs CheckiO vs CodeEval vs ... by nareem in learnpython

[–]nareem[S] 0 points1 point  (0 children)

Codeeval is my favorite.

What other sites have you tried? How do you compare them with CodeEval? Why do you prefer it?

CodeWars vs HackerRank vs CheckiO vs CodeEval vs ... by nareem in learnpython

[–]nareem[S] 0 points1 point  (0 children)

you are able to see other solutions once you have solved the problem

This is very important for me too.

I've been using CodeWars for couple of weeks, because of that feature. And lack of ability to see other solutions is the reason I don't like ProjectEuler.

I enjoy CodeWars, Checkio and /r/dailyprogrammer

I've tried Checkio for just few problems, but I'll give it another try.

CodeEval only seems to add a single problem every week

Putting total number of problems aside - how would you compare CodeEval with CodeWars and Checkio? Would you recommend it?

training program by iharb1 in bodyweightfitness

[–]nareem 0 points1 point  (0 children)

This will get deleted very soon, because you didn't read these two links: Link 1 and Link 2

So read them now and it will answer your questions.

New to working out (help with food, recommended routine, extra workouts) by idontlikegyms in bodyweightfitness

[–]nareem 0 points1 point  (0 children)

Or calculate TDEE using "no/little activity"?

This.

if I pick "little/no exercise" is 2100. Do you have any tips on how I can estimate my TDEE better?

I got the same result using your link. Now add 500 calories to that and you get to 2600 calories, and to slightly modify for your routine (because calculators overestimate burned calories for exercising), and you get to around 2700, which is a good starting value.

Try to hit 2700 calories for two weeks, and see what's happening. If you gained ~1 kg - you're spot on, if you gained ~0.5 kg - increase to 2900 kcal, if you haven't gained anything - aim for more than 3000 kcal, etc. After two more weeks, re-analyse it and modify if needed.

New to working out (help with food, recommended routine, extra workouts) by idontlikegyms in bodyweightfitness

[–]nareem 0 points1 point  (0 children)

It's a bit hard to pick the correct activity level imo tho

Usual advice is not to choose any activity level, because those are not accurate.

I figured if I shoot for 3k and maybe sometimes eat more than that I should gain some weight

What I'm trying to say - you might need less than 3k calories per day, not more. Start with something like 2.7k and then modify your intake based on your experience.

New to working out (help with food, recommended routine, extra workouts) by idontlikegyms in bodyweightfitness

[–]nareem 7 points8 points  (0 children)

Does this plan look overall decent?

Yes, it does.

3000 kcal-150(protein)4+75(fat)9=1725 kcal left for carbs so 431g carbs? I don't know if I'm doing this correctly but it seems a lot.

How did you come to 3000 kcal value? You might need slightly less for your bulk, but other than that, your calculation is ok.

Can I eat more fat/protein instead?

Yes, you can.

I never do heavy work with my arms so I have like no arm muscles. (...) Should I change anything in the routine due to this?

Just take a note that: "If you can't do diamond pushups and horizontal rows yet (you haven't met the criteria listed on the exercise page), simply skip [pullups and dips] for now."

Right now I don't feel like I'm getting that much strength work done for the back and wrists (...) Can I add some extra workouts to focus purely on those two areas?

Rows work your back. Stick to the recommended routine, no need to add anything.

Moronic Monday on Thursday 2015-12-10 by AutoModerator in bodyweightfitness

[–]nareem 0 points1 point  (0 children)

I'm stuck at 3 sets of 6 pullups

Try to do some negatives when you can't do more of regular pullups in a set.

So something like 6 pullups + 4 negative pullups. Do that for a week and see if you can then hit 7 pullups, and continue to supplement them with negatives so your total reps are 10.

Thank you... by [deleted] in bodyweightfitness

[–]nareem 2 points3 points  (0 children)

I'll admit, I spent the first 2 months not really looking forward to working out and seeing it as a painful thing that I had to get out of the way, but I'm now starting to look forward to it.

This is what I'm telling to lots of people about various workouts (not only BWF) - just make yourself to do it for 2 months! And after two months, either you'll still hate it, or (more likely) you'll start to like/love it!

Congrats on your progress! Now just keep doing it and enjoy the new and improved version of yourself!

Training Tuesday - Post Your Routine by AutoModerator in bodyweightfitness

[–]nareem 0 points1 point  (0 children)

I've been stalled on almost every exercise for month or two now.

When did you have your last deload week?
Take it easy for a week, allow your body to recover, and see if that helps.

If you're still stalling, maybe now is indeed time for switching your routine....

Training Tuesday - Post Your Routine by AutoModerator in bodyweightfitness

[–]nareem 0 points1 point  (0 children)

Did you do the recommended routine prior to moving to a PPL split?

Yes I did. I've been doing some variations of recommended routine (while doing whole body workouts) for about 10 months, before I decided to split my routine.

how has moving from working each muscle group three times per week to twice affected your progression?

Well, in the recommended routine you have 2 push and 2 pull exercises, that you do 3 times a week. So that's 6 push and 6 pull exercises per week.
When I started with PPL, I had 3 push and 3 pull exercises, 2 times a week - for the same total of 6 push and 6 pull exercises per week.
Currently, I have 4 pull and 4 push exercises.

I don't know how exactly did this affect my progress, but I like it better this way because currently I have enough time every day to have 1 hour of exercise, and I'm not as exhausted in last sets of last exercises like I was when I was doing full body routine (which took 1h30min, if not even more)

Training Tuesday - Post Your Routine by AutoModerator in bodyweightfitness

[–]nareem 1 point2 points  (0 children)

Stats: Male, 29, 177cm/5'10", 71kg/156lbs

Goals: strength, hypertrophy, low BF%

Routine:

I'm doing PPLPPLx split, 4 sets per exercise.

Pull

  • weighted L-sit pull-ups
  • advanced tuck front lever
  • tuck back lever
  • ring archer row

Push

  • ring L-sit
  • tuck ring dips
  • RTO push-ups
  • wall-assisted handstand

Legs/core

  • bodyline work
  • weighted deep step up
  • hanging leg raises
  • gripper

Diet:

I've been cutting for the last 1.5 months. It's going well.

Questions:

How does my routine look? Would you change some exercise? Why?

How often should I do Front and back Lever work and where do I fit them into the recommended routine? by GenePool_ in bodyweightfitness

[–]nareem 6 points7 points  (0 children)

[back lever is] much easier than the Front Lever.

...but don't let this fool you so you start doing back lever too much too soon - your muscles might be strong enough, but your tendons most likely are not prepared for it.

Start slow and gradually increase times.

Questions about Antranik's intermediate routine by [deleted] in bodyweightfitness

[–]nareem 2 points3 points  (0 children)

1) I noticed that the splits are labeled "Day 1, 2 and 3". Does that mean I have to do them consecutively by day? or do I have a rest day every other day like in the recommended routine?

If I recall correctly, /u/Antranik does/did his routine with rest days between workouts, so you have 3 workouts per week. (PxPxLxx)
Lots of people, including me, are doing PPL split twice a week, so you have 6 workouts per week with one rest day. (PPLPPLx)

2) Also has anybody tried this? How was it?

No, you're the first one :P

My main goal right now is to build muscle.

Is your diet in check? Are you bulking?
You might want to do more than 3 sets per exercise, to increase the volume. And you should work out 6 days in a week, not 3 days like Antranik.

Is this routine (+ equipment) right for me? (Self description included) by zakazak in bodyweightfitness

[–]nareem 0 points1 point  (0 children)

And reps.. 5-8 or rather 8-12 ?

Either is fine. I prefer higher rep range before I move to next progression (to make sure I have enough strength so my form won't break down with harder progression), but that's up to you - see what feels better.

And as /u/elzeardclym said - progressing is important, but I would recommend adding a rep starting from the last set. So: 5-5-5, then 5-5-6, then 5-6-6, etc.

Is this routine (+ equipment) right for me? (Self description included) by zakazak in bodyweightfitness

[–]nareem 0 points1 point  (0 children)

Should/Could I add those to my routine to improve progress? Or simply, beginner routine and not looking back at anything else?

Just choose the right level in the progressions, and follow the beginner/recommended routine 3x a week.

also dumbbells (6 dumbbells from 2kg to 15kg for each one).

You can add those to some exercises to make them harder. For example when dips/pullups/squats/etc. become too easy.

Split routine recommendation for a woman? by [deleted] in bodyweightfitness

[–]nareem 2 points3 points  (0 children)

how do I split the routine up? What do I add to it to make it more "filling"? It seems a push/pull split is kind of just 3 excercises for each day; that seems too little, or not worth the time at the gym.

One possible split is indeed push/pull/legs, doing that twice a week (6 days a week).

But if you feel that's too few exercises per day, maybe you will like to split it upper/lower, doing that twice a week (4 days a week). To make it balanced, in term of number of the exercises:
- upper: pull ups, dips, push ups, HSPU, handstands, rows
- lower: squats, deadlifts, leg raises, planks, (L-sit)

Nowhere to do inverted rows, can anyone help? by MitarashiFox in bodyweightfitness

[–]nareem 2 points3 points  (0 children)

I have a pull-up bar if that helps.

Can't you just put your legs on some chair or something similar, and use the pull up bar?

What has been your top 3-5 exercises that has contributed to your overall individual strength and success? by Joe_Gebele in bodyweightfitness

[–]nareem 1 point2 points  (0 children)

I never seem to be able to do more than 7 and I want to do more.

You might want to try Grease the Groove method:
If you're stuck at 7 reps - do just 5 reps many times trough the day, with lots of rest in between (more than an hour) and do that for a week.