Ответ:
a = [1, 5, 3, 9, 4, 2, -3, -1, 45]
r = ""
for x in a:
w = 2 * x + 6
if w > 0:
if r == "":
r = f"{w}"
else:
r = f"{r}, {w}"
print(r)
рад помочь!
a=input().split()
b=[]
for i in a:
if float(i)>=0.5 and float(i)<=100:
b.append(i)
print(b)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
a = [1, 5, 3, 9, 4, 2, -3, -1, 45]
r = ""
for x in a:
w = 2 * x + 6
if w > 0:
if r == "":
r = f"{w}"
else:
r = f"{r}, {w}"
print(r)
рад помочь!
a=input().split()
b=[]
for i in a:
if float(i)>=0.5 and float(i)<=100:
b.append(i)
print(b)