Questions tagged [uppercase]

Uppercase characters are capital letters.

Uppercase characters are capital letters: A, B, C, …

In ASCII, they are the characters in the range [A-Z]. But other characters (for instance accented characters like É, È, Ê, À, Î, Ä, Ù) are also considered uppercase.

The counterpart of is .


See also: Letter case on Wikipedia

1373 questions
-2
votes
1 answer

How to make only one letter in string uppercase?NOT the first one in JS

function checkA(string1) { let a = "a"; let A = "A"; let text = string1; if (text.includes(A)) { return text.toLowerCase(A); } else if (text.includes(a)) { return text.toUpperCase(a); } else { return text; …
-2
votes
3 answers

Upper and lower case in Python

I want to do a program where I have this input: New Word and this output: NeW wOrD def changeCase(): i=0 while i <= len(word): if((i%2)==0): print(word[i].upper()) else: print(word[i].lower() i=i+1
-2
votes
2 answers

How can I split and give uppercase to a string at the same time?

I have this string, I am fairly new to python and I just need help doing this. def this_sentence(My friend went on a tour) I want the Output to look like this ['MY', 'FRIEND', 'WENT', 'ON', 'A', 'TOUR']
Barkley
  • 3
  • 1
-2
votes
3 answers

Write a Python function that accepts a string and calculate the number of upper case letters and lower case letters. new to programming

I have tried this solution. But I am not receiving any output. Can someone please point out my error. def num_case(str): z=0 j=0 for i in str: if i.isupper(): z=z+1 return z elif i.islower(): …
-2
votes
1 answer

I am using .upper in my defined function , but it do not work to uppercase the string. Can anyone tell me whats wrong in my code?

def Upper_case(name): name.upper() return name x=Upper_case('hello') print(x)
-2
votes
3 answers

Is there a way to properly case names after user inputs their names in C#?

I am trying to figure out how to sort input names to right capitalization eg: tim jAmes = Tim James I have sorted it up to where i can take in the name, but the sorting out has been doing my head in, not very familiar with c# yet but i need this for…
6odfrey
  • 11
  • 2
-2
votes
1 answer

Java - Method ignores Upper -> Lowercase tranformation

A question about ASCII and java: I am reading files using java, all of them containing Uppercase letters, which I am supposed to convert into lowercase, in order to treat them with another algorithm, which looks for matches between sequences read…
user6511334
-2
votes
4 answers

using else if statements to check for uppercase, lowercase, or number character

I've been trying to solve this question to check if a character is in uppercase, lowercase or is a number and I've been able to do it for the uppercase and lowercase but I can't do it for the number. let letterOrNumber = prompt("Enter an uppercase…
Sierszo
  • 5
  • 1
-2
votes
1 answer

RegEx to enforce a typical Forename format

I would like to develop a RegEx that can enforce a typical Forename format that enforces the below: First character must be uppercase letter. Last character must be lowercase letter. Only letters, apostrophe, fullstop, hyphen and space are…
MisterIbbs
  • 247
  • 1
  • 7
  • 20
-2
votes
2 answers

How do I change the value of a variable to lowercase in Python?

How do I change the value of a variable to lowercase in Python? For example, when "I study Python programming at KAIST Center for Gift Education." is the value of this variable, how do i make it "i study python programming at kaist center for gifted…
-2
votes
2 answers

Change the case on Mc surnames to proper case

I run a function to update some columns on a few tables to change UPPERCASE to ProperCase. I didn't take into account the 'Mc' or 'Mac' surnames. So now all my McSurnames have changed to Mcsurnames. Does anyone have any scripts that would amend to…
MalcolmPH
  • 19
  • 5
-2
votes
1 answer

get all uppercase " words " from a text

I want to get all uppercase string from a text using regex and PHP, for example in this sentence " Hello FROM USA Tô ENGLAND " I want to get those words " FROM USA ENGLAND ", which means the word must have uppercase characters (all the characters)…
sayou
  • 893
  • 8
  • 29
-2
votes
1 answer

How to lowercase one specific letter?

This is the case: i'm working on a Wordpress theme and all the titles (h1,h2,h3,h4,h5,h6) on a page needs to be in uppercase except for one letter, the letter: i. This letter needs to be in lowercase. Example: THiS LETTER NEEDS TO BE iN…
ElBrm
  • 326
  • 3
  • 14
-2
votes
2 answers

Using StringBuild to change string to lowercase only for uneven positioned letters

I am currently learning c# with an online tutorial. So far I have been able to solve every exercise but this one I cannot figure it out: Write a program asking the user a string. Then it will modify the string by changing uneven letters (first,…
-2
votes
1 answer

How to get upper str this case

I want to get upper"T".. how to get upper string! str = "Test Version" print(str.upper()) print(str[3])