Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 769f697

Browse files
committed
Edited solutions to pass after merge conflict
1 parent 68b3da0 commit 769f697

File tree

20 files changed

+26
-391
lines changed

20 files changed

+26
-391
lines changed
Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
<<<<<<< HEAD
2-
<<<<<<< HEAD
3-
<<<<<<< HEAD
4-
=======
5-
>>>>>>> 95a635a4ecbbedb34125c1f8cacdc445bd0dbfd0
6-
# L = [152, 463, 1112, 1337, -10]
7-
# LIST_MAX = sorted(L)[-1]
8-
9-
# print(LIST_MAX(L))
10-
111
L = [152, 463, 1112, 1337, -10]
122
def LIST_MAX1(L):
133
current_max = L[0]
@@ -19,47 +9,4 @@ def LIST_MAX1(L):
199
current_max = L[3]
2010
if L[4] > current_max:
2111
current_max = L[4]
22-
return current_max
23-
<<<<<<< HEAD
24-
LIST_MAX = LIST_MAX1(L)
25-
=======
26-
L = [152, 463, 1112, 1337, -10]
27-
# def LIST_MAX(L):
28-
# if L == []:
29-
# LIST_MAX1 = None
30-
# else:
31-
# LIST_MAX1 = sorted(L)[-1]
32-
# return LIST_MAX1
33-
34-
# print(LIST_MAX(L))
35-
LIST_MAX = sorted(L)[-1]
36-
# print(LIST_MAX)
37-
>>>>>>> d536594... Pushing exercises
38-
=======
39-
# L = [152, 463, 1112, 1337, -10]
40-
# LIST_MAX = sorted(L)[-1]
41-
42-
# print(LIST_MAX(L))
43-
44-
L = [152, 463, 1112, 1337, -10]
45-
def LIST_MAX1(L):
46-
current_max = L[0]
47-
if L[1] > current_max:
48-
current_max = L[1]
49-
if L[2] > current_max:
50-
current_max = L[2]
51-
if L[3] > current_max:
52-
current_max = L[3]
53-
if L[4] > current_max:
54-
current_max = L[4]
55-
return current_max
56-
<<<<<<< HEAD
57-
LIST_MAX = LIST_MAX1(L)
58-
59-
>>>>>>> f07cce6... Completed
60-
=======
61-
LIST_MAX = LIST_MAX1(L)
62-
>>>>>>> 6cffc71... Completed Exercises
63-
=======
64-
LIST_MAX = LIST_MAX1(L)
65-
>>>>>>> 95a635a4ecbbedb34125c1f8cacdc445bd0dbfd0
12+
return current_max
Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,6 @@
1-
# Code your solution here
2-
<<<<<<< HEAD
3-
<<<<<<< HEAD
4-
<<<<<<< HEAD
5-
=======
6-
>>>>>>> 95a635a4ecbbedb34125c1f8cacdc445bd0dbfd0
71
# length = len(input())
82
# breadth = len(input())
93
length = 6
104
breadth = 4
11-
<<<<<<< HEAD
12-
=======
13-
length = 6
14-
breadth = 4
15-
16-
>>>>>>> 39354d0... Completed Exercises
17-
=======
18-
# length = len(input())
19-
# breadth = len(input())
20-
length = 6
21-
breadth = 4
22-
>>>>>>> f07cce6... Completed
23-
=======
24-
>>>>>>> 95a635a4ecbbedb34125c1f8cacdc445bd0dbfd0
255
data = length * breadth
26-
print(data)
6+
print(data)
Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Code your solution here
22
def grade(mark):
33
if mark >= 90:
4-
<<<<<<< HEAD
5-
<<<<<<< HEAD
6-
<<<<<<< HEAD
7-
=======
8-
>>>>>>> 95a635a4ecbbedb34125c1f8cacdc445bd0dbfd0
94
return 'A+ GRADE'
105
elif mark >= 70:
116
return 'B GRADE'
@@ -17,33 +12,4 @@ def grade(mark):
1712
return 'FAIL'
1813
# score = int(input("Enter your grade here:"))
1914
mark = 80
20-
print(grade(mark))
21-
<<<<<<< HEAD
22-
=======
23-
# return 'A+ GRADE'
24-
print('A+ GRADE')
25-
=======
26-
return 'A+ GRADE'
27-
>>>>>>> 9784d40... Completed
28-
elif mark >= 70:
29-
return 'B GRADE'
30-
elif mark >= 50:
31-
return 'C GRADE'
32-
elif mark >= 35:
33-
return 'D GRADE'
34-
else:
35-
<<<<<<< HEAD
36-
# return 'FAIL'
37-
print('FAIL')
38-
score = int(input("Enter your grade here:"))
39-
print(grade(score))
40-
>>>>>>> d536594... Pushing exercises
41-
=======
42-
return 'FAIL'
43-
# score = int(input("Enter your grade here:"))
44-
mark = 80
45-
print(grade(mark))
46-
>>>>>>> 9784d40... Completed
47-
=======
48-
>>>>>>> 95a635a4ecbbedb34125c1f8cacdc445bd0dbfd0
49-
# grade(score)
15+
print(grade(mark))

introduction_and_environment/data_types_and_control_flow/3_month_days/Solution/solution.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Code your solution here
2-
month = input('Enter any month:')
2+
# month = input('Enter any month:')
3+
month = 'august'
34
month_dict = {'january':'31', 'february':'28, 29', 'march':'31', 'april':'30', 'may':'31', 'june':'30', 'july':'31', 'august':'31','september':'30', 'october':'31', 'november':'30', 'december':'31'}
45
def data(month):
56
if month in month_dict.keys():

introduction_and_environment/data_types_and_control_flow/3_palindrome/Solution/solution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Code your solution here
2-
line = input('Enter any string value:')
3-
2+
# line = input('Enter any string value:')
3+
line = 'malayalam'
44
if line == line[::-1]:
55
is_palindrome = True
66
else:

introduction_and_environment/data_types_and_control_flow/3_shape_check/Solution/solution.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Code your solution here
2-
figure = input('Enter any geometric shape value:')
2+
# figure = input('Enter any geometric shape value:')
3+
figure = '5'
34
my_dict = {'3':'Triangle', '4':'Quadrilateral', '5':'Pentagon', '6':'Hexagon', '7':'Heptagon', '8':'Octagon', '9':'Nonagon'}
45

56
def data(figure):

introduction_and_environment/data_types_and_control_flow/3_string_case/Solution/solution.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
# Code your solution here
22
string_val = str(input())
3-
<<<<<<< HEAD
4-
<<<<<<< HEAD
5-
<<<<<<< HEAD
63

7-
=======
8-
>>>>>>> d536594... Pushing exercises
9-
=======
10-
11-
>>>>>>> 9784d40... Completed
12-
=======
13-
14-
>>>>>>> 95a635a4ecbbedb34125c1f8cacdc445bd0dbfd0
154
upper_data = string_val.upper()
165
lower_data = string_val.lower()
176

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,2 @@
1-
<<<<<<< HEAD
2-
<<<<<<< HEAD
3-
<<<<<<< HEAD
41
# print('Hexadecimal')
5-
print('Boolean')
6-
=======
7-
print('Hexadecimal')
8-
>>>>>>> 3569546... Exercises completed
9-
=======
10-
# print('Hexadecimal')
11-
print('Boolean')
12-
>>>>>>> 9784d40... Completed
13-
=======
14-
# print('Hexadecimal')
15-
print('Boolean')
16-
>>>>>>> 95a635a4ecbbedb34125c1f8cacdc445bd0dbfd0
2+
print('Boolean')
Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,2 @@
1-
<<<<<<< HEAD
2-
<<<<<<< HEAD
3-
<<<<<<< HEAD
41
# print('Boolean')
5-
print('Hexadecimal')
6-
=======
7-
print('Boolean')
8-
>>>>>>> 3569546... Exercises completed
9-
=======
10-
# print('Boolean')
11-
print('Hexadecimal')
12-
>>>>>>> 9784d40... Completed
13-
=======
14-
# print('Boolean')
15-
print('Hexadecimal')
16-
>>>>>>> 95a635a4ecbbedb34125c1f8cacdc445bd0dbfd0
2+
print('Hexadecimal')

introduction_and_environment/introduction_to_programming/3_bitwise_operators_1/Solutions/solution.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,9 @@
11
x = 0
22
y = 1
33

4-
<<<<<<< HEAD
5-
<<<<<<< HEAD
6-
<<<<<<< HEAD
7-
=======
8-
>>>>>>> 95a635a4ecbbedb34125c1f8cacdc445bd0dbfd0
9-
10-
Answer_and = x & y
11-
Answer_or = x | y
12-
Answer_not = ~ x
13-
<<<<<<< HEAD
14-
=======
15-
x & y = 0
16-
x | y = 1
17-
~ x, ~ y = 1, 0
18-
19-
Answer_and = 0
20-
Answer_or = 1
21-
Answer_not = 1, 0
22-
>>>>>>> 3569546... Exercises completed
23-
=======
24-
254
Answer_and = x & y
265
Answer_or = x | y
276
Answer_not = ~ x
28-
>>>>>>> 39354d0... Completed Exercises
29-
=======
30-
>>>>>>> 95a635a4ecbbedb34125c1f8cacdc445bd0dbfd0
317

328
print(Answer_and)
339
print(Answer_or)

0 commit comments

Comments
 (0)