Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1012465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:57:01+00:00 2026-05-16T09:57:01+00:00

I am given either a single character or a string, and am using Python.

  • 0

I am given either a single character or a string, and am using Python.

How do I find out if a specific character has a lowercase equivalent according to the standards (standard and special case mappings) proposed by Unicode?

And how do I find out if a string has one or more characters that have a lowercase equivalent according to the standards (standard and special case mappings) proposed by Unicode?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T09:57:02+00:00Added an answer on May 16, 2026 at 9:57 am
    def haslower(unicodechar):
        return unicodechar != unicodechar.lower()
    
    def anylower(unicodestring):
        return any(haslower(c) for c in unicodestring)
    

    This will only work correctly in as much as the Python version you’re using has correctly implemented the .lower() method per unicode standards, of course. Also, I’m assuming that you don’t consider, e.g., u'a', to “have a lowercase equivalent” (it has an uppercase one of course). If you mean something different, consider

    def changescase(uc):
        return uc != uc.lower() or uc != uc.upper()
    

    (I’ve renamed the argument to uc to avoid excessive line length;-) — if that’s what you want I recommend not naming the function in terms of “lowercase equivalent” as that would be sure to confuse readers/maintainers of your code!-)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assume you have 3 given tasks. You can run them either using process or
Given a string named line whose raw version has this value: \rRAWSTRING how can
I have a source schema in which the address may be given either as
Given i have the IO function: // this can either be IO or some
Given a amazon product URL, which can either be http://amazon.com/gp/product/ASIN/* http://amazon.com/*/dp/ASIN/* http://amazon.com/dp/ASIN/* how do
I have been given the option to either have a Windows laptop or a
Previously we had desktop applications but given the fact that accessing the server (either
Possible Duplicate: Get just the hour of day from DateTime using either 12 or
I'm in the need of a custom field that accepts either a string or
I'm currently using Adobe's Acrobat Interop library (v1.1) in a single threaded fashion to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.