Computer Science, asked by ThisUsernamesTooLong, 1 month ago

Please help, don't spam, thank you

Attachments:

Answers

Answered by Equestriadash
9

1.

name = input("Enter your name: ")

print()

#counting the number of characters in the name; using len()

print(len(name), "characters are there in the name.")

#chaning the name to lowercase using lower()

print(name.lower(), "is the lowercase version of the name.")

#chaning the name to uppercase using upper()

print(name.upper(), "is the uppercase version of the name.")

#selecting 'A'/'i' from the name

if  'A' in name:

  print('A')

elif 'i' in name:

  print('i')

else:

  print("There is no 'A' or 'i' in the name.")

2.

c = float(input("Enter the temperature [in Celsius]: "))

f = (c*1.8) + 32

print(f, "is the Fahrenheit converation of", str(c) + "°C.")


Equestriadash: Thanks for the Brainliest! ^_^"
Answered by purveshKolhe
5

  \huge{\red{ \boxed{ \boxed{ \green{ \mathfrak{answer}}}}}}

You can use the following programs

1.

usin = input("Enter your name: ")

print("The number of characters in your name is :-- " + str(len(usin)))

print(usin.lower())

print(usin.upper())

if 'A' in usin:

print("Your name contains A")

elif 'i' in usin:

print("Your name contains i")

else:

print("Your name contains neither i not A")

2.

cel = float(input("Enter celsius to be converted : "))

print("Your answer in Fahrenheit :-- " + str((cel * 1.8) + 32))

Explaination::

1.

==> We used functions --> lower(), upper(), len(). Also we needed to convert string at some places due to the need to concatenate, therefore we used str() function. We used conditional statements to check whether it contains 'A' and 'i' or not.

2.

==> We used the formula and inputted a float. Also we concatenated so we used str() function.

Hope This Helps You..

Attachments:
Similar questions