Posts by Ana Carolina Esteves • 71 points
5 posts
-
0
votes1
answer303
viewsQ: How to search a letter in a string with Golang?
I need to take a user string and check if 1) The first letter begins with i or I 2) The last letter ends with n or N 3) If string theme letter a or A in the middle. I started writing something like…
golangasked Ana Carolina Esteves 71 -
2
votes2
answers3780
viewsQ: How to get the index value of a list in Python?
I’m trying to find a way to fit in a salary amount, which is my variable sal, at an interval. I have 8 intervals: $200 - $299 $300 - $399 $400 - $499 $500 - $599 $600 - $699 $700 - $799 $800 - $899…
pythonasked Ana Carolina Esteves 71 -
0
votes2
answers873
viewsQ: How to know if a number is an integer or a float? And how to assign a type to a value inserted in the input function
I have the following problem: Make a program that takes any two numbers (integers or real) and print on the screen the integers that are in the range understood by them. And I made the following…
pythonasked Ana Carolina Esteves 71 -
0
votes1
answer1296
viewsQ: How to check if a character is uppercase or lowercase in Pyhton?
I have a string any and I need to know the amount of upper and lower case letters in that string. I started sketching something like this: def contaMaiuscula(string): ma = 0 mi = 0 for c in string:…
-
0
votes1
answer181
viewsQ: Use the split() and if method to create a statement that prints the words that start with’s'
I have the following string: string_1 = 'Print only the words that start with s in this sentence' and I need to use the split method and an if to output only the words started in s. But I have no…