Please help, don't spam, thank you
Answers
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.")
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))