“Python -Code -Checker und Korrektor” Code-Antworten

Python -Code -Checker und Korrektor

import re
regex = '^[a-z0-9]+[\._]?[a-z0-9]+[@]\w+[.]\w{2,3}$'
def check(email):
 if(re.seach(regex,email)):
  print("valid email")
 else:
  print("invalid email")
  if __name__ == "__main__"
  email = input("enter Email address:  ")
     check(email)
Wandering Weevil

Python -Code -Checker und Korrektor

# importing turtle library
import turtle

# creating object of turtle
tut = turtle.Turtle()
tut.shape(*arrow*)
tut.color(*red*)

x=[1,1,-1,-1]
y=[1,-1,-1,1]

# defining logic of shape
for j in range(4):
 for i in range(1,11):
   xFrom = 0
   yFrom = (10-i)*10
   xT o= i*10
   yTo = 0
   if j%2==0:
     tut.penup()
     tut.goto(xFrom*x[j].yFrom*y[j])
     tut.pendown()
     tut.goto(xTo*x[j].yTo*y[j])
     else:
       tut.penup()
       tut.goto(yFrom*y[j].xFrom*x[j])
       tut.pendown()
       tut.goto(yTo*y[j].xTo*x[j])
Shahed Arous

Python -Code -Checker und Korrektor

Can anyone fix this plesae 
while event <= n_events:
    #event starts
Azam Alaei

Python -Code -Checker und Korrektor

print("Welcome to the roller coaster ride")
height = int(input("What is your height in cm \ n"))
if height >= 120:
    print("you can ride the roller coaster")
    age = int(input("What is your age? \ n")
    if age <=18:
        print("please pay Rs 7")
    else:
        print("Please pay Rs25")
else:
    print("sorry, you dont have enough height to travel in the roller coaster")
C V

Python -Code -Checker und Korrektor

import numpy as np
np.random.seed(0)

msin_estimates = [None]*50
msin_std = [None]*50

for i in range(1, 51):
    unif_array = uniform.rvs(size = i*1000)*np.pi
    sin_val = np.sin(unif_array)*np.pi
    msin_estimates[i-1] = np.mean(sin_val)
    msin_std[i-1] = np.std(sin_val)/np.sqrt(i*1000)
    
Cruel Chimpanzee

Python -Code -Checker und Korrektor

H=eval(input("Height"))
W=eval(input("weight"))

BMI=W/H**2
if BMI<=18.5:
       print("underweight")
else:
       if BMI>18.5 and <25:
        print("fit")
else:
       if BMI>25
        print("overweight")
Clear Crocodile

Python -Code -Checker und Korrektor

#Can anyone fix this

pctr=0
price=['1','2','3','4','5','6','7','8','9','0'] #array value

#enter a set of integer value
price=input('enter integer value')

#count the length of the character
ppcode=len(price)

print('Coded value :')

while (pctr<=ppcode):
    pctr=pctr+0
    
    if price[pctr]=='1':
        print('A')

    elif price[pctr]=='2':
        print('B')

    elif price[pctr]=='3':
        print('C')

    elif price[pctr]=='4':
        print('D')

    elif price[pctr]=='5':
        print('E')

    elif price[pctr]=='6':
        print('F')

    elif price[pctr]=='7':
        print('G')

    elif price[pctr]=='8':
        print('H')

    elif price[pctr]=='9':
        print('I')

    elif price[pctr]=='0':
        print('J')

    else:
        print('invalid price code!')
        break
    pctr=pctr+1
else:
    print('end of process')
Terrible Toucan

Python -Code -Checker und Korrektor

maximum = 0
max_team = 0
for t in rslt["Team"]:
    d = rslt[rslt["Team"] == t]
    if int(d["Points"]) > 25:
        win_percentage  = int((d["Won"]/d["Matches"])*100)
        if win_percentage > maximum:
            maximum = win_percentage
            print(int(d["Won"]/d["Matches"]*100)
            print("max", maximum)
            max_team = t
print(t)
Sreya S Menon

Python -Code -Checker und Korrektor

while event <= n_events:
    #event starts
Azam Alaei

Python -Code -Checker und Korrektor

radius=input("Please enter the Radius")
diameter=radius*2
area=3.14*(radius*radius)
circumference=2*3.14*radius
print("The diameter is " +(str(diameter)))
print("The area is " +(str(area)))
print("The circumference is " +(str(circumference)))
Logine Hany

Ähnliche Antworten wie “Python -Code -Checker und Korrektor”

Fragen ähnlich wie “Python -Code -Checker und Korrektor”

Weitere verwandte Antworten zu “Python -Code -Checker und Korrektor” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen