Commit 5ef35f99 by BellCodeEditor

auto save

parent 13014d25
Showing with 33 additions and 11 deletions
import random
a=input()
b=[]
for i in range(int(a)):
b.append(float('%.2f'%random.uniform(1,100)))
c=sum(b)
print('%.2f'%float(c/int(a)))
\ No newline at end of file
a=list(input().split(','))
b=''.join(a)
print(b)
\ No newline at end of file
a=list(input().split(','))
for i in range(len(a)):
a[i]=int(a[i])
print(sum(a))
import math
print(math.pow(3,3))
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.fillcolor("red")
pen.begin_fill()
for i in range(5):
pen.forward(200)
pen.right(144)
pen.end_fill()
pen.hideturtle()
turtle.done()
\ No newline at end of file
a=list(input().split(','))
b=sorted(set(a))
d=0
for j in b:
d=0
for i in a:
if j==i:
d+=1
if d==1:
print(j)
else:
print(j,'-',d)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment