• API
• FAQ
• Tools
• Trends
• Archive
daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Apr 21st, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
2. a=int(input("a="))
3. b=int(input("b="))
4. if (a+b<100) and ((a+b)//10+(a+b)%10)%2==0:
5.   print("True")
6. else:
7.   print("Error")
8. print()
10. lst=[]
11. for i in range (0,7):
12.   lst.append(int(input("b=")))
13. print(lst)
14. s=0
15. a=0
16. for i in lst:
17.   for j in range(i+1,len(lst)):
18.     for k in range(i+2, len(lst)):
19.       s=lst[i]+lst[j]+lst[k]
20.       if s>15:
21.         a=a+1
22.         print(lst[i],lst[j],lst[k])
23.         continue
24. if a==0:
25.   print("0")
26. print()
28. lst=[]
29. for i in range(100,9,-1):
30.   if i%7==0:
31.     lst.append(i)
32. print(lst)
33. print()
35. lst=[]
36. t=int
37. while True:
38.   b=int(input("B="))
39.   if b!=t:
40.     lst.append(b)
41.   else:
42.     break
43.   t=b
44. print(lst)
45. print()
47. def trm(v1,v2,v3):
48.   if v1>(v2+v3):
49.     return(v1)
50.   elif v2>(v1+v3):
51.     return(v2)
52.   elif v3>(v1+v2):
53.     return(v3)
54.   else:
55.     return(0)
56. a=int(input("a="))
57. b=int(input("b="))
58. c=int(input("c="))
59. print(trm(a,b,c))
60. print()
62. def fun(v1):
63.   r=0
64.   for i in range(100,1000):
65.     if ((i//100)**2+(i%10)**2+((i%100)//10)**2)>i:
66.       r=r+1
67.       if r>v1:
68.         break
69.       else:
70.         return(i)
71.     else:
72.       continue
73. n=int(input("N="))
74. print(fun(n))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

Top