

Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
Ngôn ngữ lập trình trên là: Python
Code:
n = int(input())
s = input()
dem=0
for i in s:
if(32<ord(i)<43):
print(i,end=' ')
dem+=1
elif (ord(i)==47 or ord(i)==96 or ord(i)==45):
print(i,end=' ')
dem+=1
elif (58<ord(i)<65):
print(i,end=' ')
dem+=1
elif (90<ord(i)<94):
print(i,end=' ')
dem+=1
elif (122<ord(i)<127):
print(i,end=' ')
dem+=1
print("\n"+str(dem))
$\href{https://hoidap247.com/thong-tin-ca-nhan/304994}{\color{red}{\text{Daoanhviet96}}}$
Hãy giúp mọi người biết câu trả lời này thế nào?

- NNLT Python
- Code:
n = int(input())
s = input()
count = 0
for i in s:
if i.isalpha() or i.isspace():
count += 1
print(i)
print(count)
Hãy giúp mọi người biết câu trả lời này thế nào?
Bảng tin
5599
4859
3498
test gdb hộ con
2901
47938
1864
Có sai gì thì kêu chứ chả biết cái nào không phải kí tự đặc biệt nữa :v
2901
47938
1864
gdb?
5599
4859
3498
onlinegdb.com
5599
4859
3498
www.onlinegdb.com
2901
47938
1864
https://ucode.vn/ucode/hoidap-16931 Tôi code trên đây mà cái kia hình như C++ :v
5599
4859
3498
um