About 2,600,000 results
Open links in new tab
  1. Program to find the largest and smallest ASCII valued characters

    Feb 8, 2024 · Given a string of lowercase and uppercase characters, your task is to find the largest and smallest alphabet (according to ASCII values) in the string. Note that in ASCII, all …

  2. Python's min() and max(): Find Smallest and Largest Values

    Jan 18, 2025 · Python’s built-in functions max() and min() allow you to find the largest and smallest values in a dataset. You can use them with iterables, such as lists or tuples, or a …

  3. How python choose the max letters from string - Stack Overflow

    Lookup the ASCII values of the characters! The characters are evaluated according to ascii score and the max is taken... Note that all the answers here which mention ASCII are plain wrong: …

  4. Python - String min() method - GeeksforGeeks

    Dec 30, 2024 · The min() function finds the smallest character based on ASCII values. The ASCII value of 'e' is smaller than that of 'h', 'l', or 'o', so 'e' is returned.

  5. python - Smallest ASCII Value in a List - Stack Overflow

    May 6, 2014 · Is there a function(s) that I can use to find the capital letter in a string with the smallest ASCII value. For example, given this input string:

  6. Print Words with Highest and Lowest ASCII Value in Python

    Jul 25, 2023 · Learn how to print words from a sentence that have the highest and lowest ASCII value of characters using Python. This tutorial provides a step-by-step guide.

  7. python - How to get the ASCII value of a character - Stack Overflow

    Oct 19, 2023 · To use it, wrap a string/character in a numpy array and view it as int, which returns the corresponding numeric value(s) of the character(s) in whatever encoding it is in.

  8. Python Program to Find ASCII Value of a Character

    Apr 15, 2024 · Python Program to Find ASCII Value of a Character. Below are some approaches by which we can find the ASCII value of a character in Python: Using the ord() function; Using …

  9. Solved PYTHON#Problem #3 Writing a function to find the - Chegg

    PYTHON#Problem #3 Writing a function to find the largest and smallest characters # Write a program named Extremes that has a single function (besides main()) called ends() that …

  10. Writing a python program that determines "smallest" letter

    Sep 9, 2018 · To recap you want to first convert to all lowercase, loop through each character, convert it to the ascii value, use an if statement to compare the largest value initializing it with …

  11. Some results have been removed
Refresh