Answer:
def theRoundTrip(movement):
x=0
y=0
for i in movement:
if i not in ["U","L","D","R"]:
print("bad input")
return
if i=="U":
y+=1
if i=="L":
x-=1
if i=="D":
y-=1
if i=="R":
x+=1
return x==0 and y==0
Answer: l = 2142.8575 ft
v = 193.99 ft/min.
Explanation:
Given data:
Thickness of the slab = 3in
Length of the slab = 15ft
Width of the slab = 10in
Speed of the slab = 40ft/min
Solution:
a. After three phase
three phase = (0.2)(0.2)(0.2)(3.0)
= 0.024in.
wf = (1.03)(1.03)(1.03)(10.0)
= 10.927 in.
Using constant volume formula
= (3.0)(10.0)(15 x 15) = (0.024)(10.927)Lf
Lf = (3.0)(10.0)(15 x 15)/(0.024)(10.927)
= 6750 /0.2625
= 25714.28in = 2142.8575 ft
b.
vf = (0.2 x 0.2 x 3.0)(1.03 x 1.03 x 10.0)(40)/(0.024)(10.927)
= (0.12)(424.36)/0.2625
= 50.9232/0.2625
= 193.99 ft/min.
Answer:
1
Created on Nov 3, 2018 @author: ASLand
7import atexit
#Read, nanes of both files
Rrintll"Enter tvo files to be compared below
userliamel input ("Enter the nome of the first file: ")
userliame2 input("Enter the name of the second file: ")
ROpen each file
f1 - open(userNamel, r')
@17 f2 = opan(useriame 2, )
tread all the lines into a list
d1 f1.readlines ()
d2 f2.readlines()
re equivalent, print "Yes" else pri
oiterate, and conpare
#11
the
y
if dl == d2:
print("Yes")
atexit
elif for i in range(@, min(len (d1), len(d2))):
if di[i]!=d2[i]:
PCint("No")
print(d1[i])
pcint(d2[])