스터디/파이썬 스터디 과제

[1팀/이도연] 6주차 파이썬 과제 - 문자열

알 수 없는 사용자 2023. 5. 9. 21:30

1. 25.0

2. I eat 10 oranges every day.

3. Pythonlanguage

    -1

    False

4.

a = "hello world"
print("The first character is :", a[0])
print("The last character is : ", a[10])

 

 

5. a + b = 30

6.

 

str1 = "Hello World"
str_count1 = str1.count('o')
print("The character o arrears", str_count1, "in the string.")

 

7. REMEMBER 0815

8. orange&pink&brown&black&white&yellow