Cô cho em hỏi: Khi xoá chương trình python thì cần dùng đến lệnh nào để xoá vậy?
Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.
s = input("Nhập chuỗi: ")
s = ''.join(filter(lambda i: not i.isdigit(), s))
print("Chuỗi sau khi loại bỏ các chữ số: ", s)
so_am = 0
so_duong = 0
while True:
n = int(input("Nhap vao mot so nguyen: "))
if n == 0:
break
elif n < 0:
so_am += 1
else:
so_duong += 1
print("So am: ", so_am)
print("So duong: ", so_duong)
REFER
uses crt;
var a:array[1..255]of byte;
n,i,kt:integer;
st,st1:string;
begin
clrscr;
write('nhap chieu dai day so:'); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
{-------------------------------xu-ly---------------------------------}
st:='';
kt:=0;
for i:=1 to n do
if a[i] mod 2=0 then
begin
str(a[i],st1);
kt:=1;
st:=st+st1;
end;
if kt>0 then
begin
write('doi xung cua cac so chan la: ');
for i:=1 to length(st) do
write(st[i]:4);
for i:=length(st) downto 1 do
write(st[i]:4);
end;
readln;
end.
n = int(input("Nhập số nguyên n: "))
tong = 0
i = 1
while i <= n:
tong += i
i += 1
print("Tổng các số từ 0 đến", n, "là:", tong)



