Discuss / Python / Pass--

Pass--

Topic source

Lyuynn

#1 Created at ... [Delete] [Delete and Lock User]

-- coding: utf-8 --

age = int(input('Please enter your age:')) if age >= 18: pass else: print('Go Away')

Lyuynn

#2 Created at ... [Delete] [Delete and Lock User]

-- coding: utf-8 --

import math

def quadratic(a, b, c): if b b - 4 a * c < 0: print('no real root') else:

    x=(-b + math.sqrt( b * b - 4 * a * c )) / 2 / a
    y=(-b - math.sqrt( b * b - 4 * a * c )) / 2 / a
return x, y

  • 1

Reply