diff --git a/Introduction-to-Data-Science/Week-4/Prajwal/reversing/input.txt b/Introduction-to-Data-Science/Week-4/Prajwal/reversing/input.txt new file mode 100644 index 0000000..8ecb8d9 --- /dev/null +++ b/Introduction-to-Data-Science/Week-4/Prajwal/reversing/input.txt @@ -0,0 +1,3 @@ +hello +i +am diff --git a/Introduction-to-Data-Science/Week-4/Prajwal/reversing/output.txt b/Introduction-to-Data-Science/Week-4/Prajwal/reversing/output.txt new file mode 100644 index 0000000..31899b5 --- /dev/null +++ b/Introduction-to-Data-Science/Week-4/Prajwal/reversing/output.txt @@ -0,0 +1,2 @@ +babe +hel diff --git a/Introduction-to-Data-Science/Week-4/Prajwal/reversing/reverse.py b/Introduction-to-Data-Science/Week-4/Prajwal/reversing/reverse.py new file mode 100644 index 0000000..17639de --- /dev/null +++ b/Introduction-to-Data-Science/Week-4/Prajwal/reversing/reverse.py @@ -0,0 +1,23 @@ +file=open("input.txt",'r+') +last=file.seek(0,2) +lis=[0] +ctr=0 +file.seek(0,0) +i=0 +while i lists[j+1]: + temp =lists[j] + lists[j]=lists[j+1] + lists[j+1]=temp + +print(lists) diff --git a/prajwalsb/Week-2/PrajwalSB/theory.txt b/prajwalsb/Week-2/PrajwalSB/theory.txt new file mode 100644 index 0000000..6c7418f --- /dev/null +++ b/prajwalsb/Week-2/PrajwalSB/theory.txt @@ -0,0 +1,17 @@ +Pros of python-- +easy to write the source code when compared with other languages. +easily readable and understandable for a non-programmer. +has a rich built-in and open source library +useful for asynchronous codes. + +Cons of python--- +since its an interpreted language, its slower than many other languages +it isn't used much in web browser and mobile computing +Because the language is dynamically typed, it requires more testing and has errors + +The exponential operator has the highest priority in expression. + +// is called floor division operator.division that results into whole number adjusted to the left in the number line +ex: 5//3 will give 1 , 5/3 will give 1.6666667 + 6//3 will give 2, 6/3 will give 2.0 +