Skip to content

Commit 1d8f0ee

Browse files
committed
test new
1 parent 514fcd0 commit 1d8f0ee

File tree

5 files changed

+43
-2
lines changed

5 files changed

+43
-2
lines changed

.idea/.gitignore

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BasicThings/Operators.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print(2+9*((3*12)-8)/10)

BasicThings/Strings.py

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
"""Strings.py : Continuous set of charracters represented within any qoutation is a string, wheather it is ' ' or " ".
2-
Python does not support a char type"""
2+
Python does not support a char type"""
3+
# String is immutable
4+
h = 'gdsghdsfghcdghsdfghdfghkfdtyfbjbbjhdshjgscgfd'
5+
j = ''
6+
num = len(h)
7+
if num > 1:
8+
for i in range(2, num):
9+
if (num % i) == 0:
10+
continue
11+
else:
12+
j += h[i]
13+
else:
14+
print(None)
15+
print(j)

BasicThings/touple.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
"""
12
d = [2,4,5,6,7]
23
# print(*d) #with No Separator
3-
print(*d, sep=';') #Add your Custom separator
4+
print(*d, sep=';') #Add your Custom separator
5+
"""
6+
7+
8+
def ret(a, b):
9+
print(a, type(a), sep=' ---> ')
10+
print(b, type(b), sep=' ---> ')
11+
12+
ret(2,3)
13+
print("-----------------------")
14+
ret((2), (2,3,4,5,6)) #redundant parenthesis in arg[0], touple in arg[1]

BasicThings/trueFalse.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
a = list(map(int, input("Enter space separated values : ").split()))
2+
3+
4+
def trueFalse(a):
5+
if a == 0:
6+
return None
7+
elif a % 2 == 0:
8+
return True
9+
else:
10+
return False
11+
12+
13+
h = list(map(trueFalse, a))
14+
print(h)

0 commit comments

Comments
 (0)