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 a=list(input().split(','))
pen=turtle.Pen() b=sorted(set(a))
pen.fillcolor("red") d=0
pen.begin_fill() for j in b:
for i in range(5): d=0
pen.forward(200) for i in a:
pen.right(144) if j==i:
pen.end_fill() d+=1
pen.hideturtle() if d==1:
turtle.done() print(j)
\ No newline at end of file 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