Learn Python List Comprehension by Building a Case Converter Program - Step 5

where to put the PUNIT code in the code above?

In the picture above you wrote:

converted_character = "PUNIT".lower()

You need to change “PUNIT” to the correct variable. As you can see from the condition the .lower() method has to attach to a variable. What variable is that?

i tired changing it to Punit or punit but still the same issue

Punit is wrong - change punit to the correct variable.
everything else is ok so far.

so if i write convereted_character = punit.lower() will it work?

its not taking it should i put in the .isupper line?

No but if you change “punit” to something else it will work (there is another step after you have done lower but you need to do this bit first)

Don’t change the upper line, just the line above that you wrote in the picture and that I formatted above.

ok so i need to add another step below converted _character right with another name if i am not wrong right?

No you need to get this line right first:

converted_character = "PUNIT".lower()

i have put convereted_character = ‘punit’.lower() now what?

The next step after you correct the above line is to prepend an underscore. I suggest you complete the above line first before moving on to that. You don’t have it right yet.

i have made the correction but where should i put the _ in next line is not sure?

Can you post your code so I can see you have it right?

sure
but as you said i souldnt post the code so will that be ok if i share it here?

Just write the code line in the forum post and I’ll format it. Don’t post a picture.

let me post it here only

No you don’t have it right yet. So far it is right except for “PUNIT”.

I don’t want you to move on to the next bit until you have this line correct. Can you work out what needs to replace “punit”?

not sure how to go from here

Have a look at how the Python lower method words. You need to attach it to a variable.

Can you work out which variable you need to attach it to?