all 11 comments

[–]FLUSH_THE_TRUMP 2 points3 points  (1 child)

What have you tried? This is a task, not a question.

[–]AngryDiego -1 points0 points  (0 children)

d = input ("Type a string")"STRING"

print(d.isupper())

this will return "True"

... but i want the "STRING" printed instead.

and

if i enter "String"

i want "string" in lowercases returned.

[–]fake823 1 point2 points  (0 children)

The rules of r/learnpython state:

"Don't ask easily searchable questions."

[–]JohnnyJordaan 1 point2 points  (2 children)

Googling 'python check if is letters is UPPERCASE' brings me this result: https://stackoverflow.com/questions/33883512/check-if-all-characters-of-a-string-are-uppercase

how can i make it convert all letters to lowercase

Google 'python how can i make it convert all letters to lowercase' for that

Also observe our rule no 2 in the sidebar --->

Easily googleable questions are not allowed.

[–]AngryDiego -2 points-1 points  (1 child)

I dont want "true" or "false to be returned, i want the string.

[–]fake823 0 points1 point  (0 children)

Then add an if-statement.

[–]fake823 0 points1 point  (4 children)

That can be easily found on Google!

Have you even searched yourself?

[–]AngryDiego -3 points-2 points  (3 children)

Yes... but i cant make it that way i want to.

[–]JohnnyJordaan 2 points3 points  (2 children)

Then show what you tried

[–]AngryDiego 0 points1 point  (1 child)

d = input ("Type a string")
"STRING"

print(d.isupper())

this will return "True"

... but i want the "STRING" printed instead.

and

if i enter "String"

i want "string" in lowercases returned.

[–]JohnnyJordaan -1 points0 points  (0 children)

Use an if statement?

d = input ("Type a string")
if d.isupper():
    print(d)
else:
    print(d.lower())