Beruflich Dokumente
Kultur Dokumente
Q:
Assume
x
=
0
and
y
=
1,
Which
of
the
following
is
true?
a) x
<
2
or
y
<
2
b) x
<
2
c) A
and
B
are
correct
d) None
of
the
above
is
correct
Program:
Q:
Write
a
Python
program
that
ask
a
user
to
input
his/her
name
and
age.
Then,
check
the
age.
If
age
is
greater
than
or
equal
to
18
years
old,
the
program
should
print
the
following
two
messages:
I
am
<Name>
and
I
am
<Age>
years
old.
I
am
old
enough
to
get
driving
license.
Otherwise,
the
program
should
print
the
following
two
messages:
I
am
<Name>
and
I
am
<Age>
years
old.
I
am
NOT
old
enough
to
get
driving
license.