Jump to content

python programing question

scobie56

so im doing a mock test and my teacher said I can  use any internet source I want so here I am the question is

Write a program that:

#ask the user to input a sentence in upper case

#outputs it in lowercase

thanks

does any one know how to convent the uppercase into lower

My speakers dont even fit on or under my desk...PA's FTW

Link to comment
Share on other sites

Link to post
Share on other sites

There is a string method called .lower() (call it on the string object) that returns a string where all capital letters are lowercase.

Link to comment
Share on other sites

Link to post
Share on other sites

There is a string method called .lower() (call it on the string object) that returns a string where all capital letters are lowercase.

ok thanks

My speakers dont even fit on or under my desk...PA's FTW

Link to comment
Share on other sites

Link to post
Share on other sites

This might help.

The ability to google properly is a skill of its own. 

Link to comment
Share on other sites

Link to post
Share on other sites

thanks any way @Gomenasai the test ended as soon as you replied  lol

My speakers dont even fit on or under my desk...PA's FTW

Link to comment
Share on other sites

Link to post
Share on other sites

Well that was a fail >.<

na i managed to get 9/10 programming questions done

My speakers dont even fit on or under my desk...PA's FTW

Link to comment
Share on other sites

Link to post
Share on other sites

So if you could have used 'any Internet source' as you put it then why not Google? Even very vague search term permutations related to that yield either the answer directly, indirectly or the language documentation for string (the next most appropriate source imo)...

The single biggest problem in communication is the illusion that it has taken place.

Link to comment
Share on other sites

Link to post
Share on other sites

So if you could have used 'any Internet source' as you put it then why not Google? Even very vague search term permutations related to that yield either the answer directly, indirectly or the language documentation for string (the next most appropriate source imo)...

my school blocks most websites 

My speakers dont even fit on or under my desk...PA's FTW

Link to comment
Share on other sites

Link to post
Share on other sites

...I can use any internet source I want...

 

my school blocks most websites

 

So they block search engines, official language documentation sites and sites such as Stack Overflow but they don't block forums?

The single biggest problem in communication is the illusion that it has taken place.

Link to comment
Share on other sites

Link to post
Share on other sites

So they block search engines, official language documentation sites and sites such as Stack Overflow but they don't block forums?

yep 

My speakers dont even fit on or under my desk...PA's FTW

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×