├── Akshay Sorathia REGEX ASSIGNMENTS ├── ASSIGNMENT 3.docx ├── AWS_Assignment_1.docx ├── Assignment_1.docx ├── Assignment_2.docx ├── Assignment_4.docx ├── Assignment_5.docx ├── Assignment_6.docx ├── Linux_Assignment_4.docx ├── Python_Assignment_4.docx ├── Python_Assignment_5.docx ├── Python_Assignment_6.docx └── Python_LATE_NIGHT_ASSIGNMENT.docx ├── Aman Baheti ├── Assignment 1 Python.txt ├── Assignment 1.txt ├── Assignment 2 Linux.txt ├── Python Class 3.txt └── Python Class 4.txt ├── AmanGupta ├── Linux_Assignment1.docx ├── Linux_Assignment2.docx ├── Linux_Assignment4.docx ├── PYTHON ASSIGNMENT2.docx ├── Python Ass3.docx ├── Python Task.docx ├── PythonAssignmentC1,2.docx └── Python_Assignment1.docx ├── Amit Dubey ├── AWS_ASSIGNMENT1.docx ├── Assignment_1_lec_3.txt ├── Assignment_2_lec_4.docx ├── Assignment_3_lec_5.txt ├── Assignment_4_Python.docx ├── Assignment_5_Python.docx ├── Assignment_6_Python_3.docx ├── LINUX_ASSIGNMENT4.docx ├── PYTHON Assignment_4.docx ├── PYTHON_Late_Night.docx ├── Python Tasks.docx ├── Python_Assignment_5.docx └── Python_Assignment_6.docx ├── Anshita Laddha ├── Linux Assignment-1,2,3.pdf └── Python Assignment-1.pdf ├── Assignmentofregex ├── Assignment 1 6th April.txt └── Assignment 2 7th April.txt ├── Assignments Regex (Rishu) ├── ASSIGNMENT 3.docx ├── Day-1.docx ├── Day-2.docx ├── Day-3.docx ├── PYTHON ASSIGNMENT -4.docx ├── PYTHON CLASS 3.docx ├── python assignment 1.docx ├── python assignment 2.docx ├── ~$Day-2.docx └── ~$Day-3.docx ├── Avi Kasliwal (Regex Training) ├── Linux │ ├── Assignment1.md │ ├── Assignment2.md │ └── Assignment3.md └── Python │ ├── Assignment1.md │ ├── Assignment2.ipynb │ └── Assignment2.md ├── Ayush Goyal (Assignments) ├── linux assignment │ ├── Assignment1.md │ ├── Assignment2.md │ └── Assignment3.md └── python │ ├── Py_Assignment1.md │ └── Py_Assignment2.md ├── Ayush Goyal ├── linux assignment │ ├── Assignment1.md │ ├── Assignment2.md │ └── Assignment3.md └── python │ ├── Py_Assignment1.md │ └── Py_Assignment2.md ├── Bharat assignment ├── Assignment Linux.txt └── Assignment Python.txt ├── Chandni ├── 10 Apr.txt ├── 11 Apr.ipynb ├── 6 Apr.txt ├── 7 Apr.txt ├── 8 Apr.txt ├── 8py.ipynb ├── assignment_aws.txt ├── day3.ipynb ├── day4.ipynb ├── day5.ipynb ├── day6.ipynb ├── day7.ipynb └── farm_data.csv ├── Deepanshu Gurdasani ├── Assignment 1 6th April.txt ├── Assignment 2 7th April.txt ├── Assignment 3 8th April.txt └── Python class 1 Assignment.txt ├── Devansh Soni ├── Assignment 1 6th April.txt ├── Assignment 2 7th April.txt ├── Assignment 3 8th April.txt └── Python class 1 Assignment.txt ├── Falguni_Mirikar_Assignment ├── Linux_Assignment.txt └── Python_Assignment.txt ├── Gargi Patel ├── linux │ ├── Gargi Patel - assignment task 1.docx │ ├── Gargi Patel - assignment task 2.docx │ └── Gargi Patel - assignment task 3.docx └── python │ └── Gargi Patel - assignment 1.docx ├── Gaurav Bhojwani └── gaurav linux assignment.docx ├── Harish Kumar Jangir ├── Late Night Task.docx ├── assignment 2.docx ├── assignment 3.docx ├── python assignment 1.docx ├── python assignment 2.docx ├── python assignment 3.docx └── python assignment 4.docx ├── Harsh Dhamecha ├── Data Science Assignment │ └── Assignment 1.pdf ├── Linux Assignment │ ├── Assignment 3.pdf │ ├── Assignment_1.pdf │ └── Assignment_2.pdf ├── Python Assignment │ ├── Assignment 3.pdf │ ├── Assignment 4.pdf │ ├── Assignment 5.pdf │ ├── Assignment 6.pdf │ ├── Assignment 7.pdf │ ├── Assignment 8.pdf │ ├── Assignment_1.pdf │ └── Assignment_2.pdf └── assignment.docx ├── Harsh kumar └── Harsh kumar │ ├── assignment1.txt │ ├── assignment2.txt │ ├── assignment3.txt │ └── python 1.txt ├── Hemant singh ├── linux assignment 2.docx ├── linux assignment1.docx ├── linux assignment3.docx ├── python assignment 2 (class 2).docx ├── python assignment 2.docx ├── python assignment 3.docx ├── python assignment1.docx └── task.docx ├── Jatin Gupta[RHCSA-RHCE] ├── Assignment 1 6th April.txt ├── Assignment 2 7th April.txt ├── Assignment 3.txt ├── Python class 1 Assignment.txt └── python class 2 Assignment.txt ├── Jitendra Patel ├── assignment1..txt ├── assignment2.txt └── assignment3.txt ├── Kirti Sharma ├── Kirti_Sharma_Assignment1.txt ├── Kirti_Sharma_Assignment2.txt ├── Kirti_Sharma_Python_Ass1.txt ├── Kirti_Sharma_Python_Ass2.txt ├── Kirti_Sharma_Python_Ass3.txt └── Kirti_Sharma_Python_Ass4.txt ├── Linux └── step 2.png ├── Manish Sharma ├── Linux Task 3.pdf ├── Manish Sharma │ ├── Animatin clock.py │ ├── adding value tuple.py │ ├── diff r y.txt │ ├── ptthon Task 4 │ │ ├── Manish.txt │ │ ├── Q1.py │ │ ├── Q2..py │ │ ├── Q3.py │ │ ├── Q4.py │ │ ├── Q5.py │ │ ├── Q6.py │ │ ├── Sharma..py │ │ ├── Sharma.txt │ │ ├── Sharmaopen.py │ │ ├── Untitled.ipynb │ │ ├── letters │ │ │ ├── A.txt │ │ │ ├── B.txt │ │ │ ├── C.txt │ │ │ ├── D.txt │ │ │ ├── E.txt │ │ │ ├── F.txt │ │ │ ├── G.txt │ │ │ ├── H.txt │ │ │ ├── I.txt │ │ │ ├── J.txt │ │ │ ├── K.txt │ │ │ ├── L.txt │ │ │ ├── M.txt │ │ │ ├── N.txt │ │ │ ├── O.txt │ │ │ ├── P.txt │ │ │ ├── Q.txt │ │ │ ├── R.txt │ │ │ ├── S.txt │ │ │ ├── T.txt │ │ │ ├── U.txt │ │ │ ├── V.txt │ │ │ ├── W.txt │ │ │ ├── X.txt │ │ │ ├── Y.txt │ │ │ └── Z.txt │ │ ├── words1.txt │ │ └── write.py │ ├── py 3 │ │ └── Python-03.txt │ ├── py t 2 │ │ ├── Animatin clock.py │ │ ├── adding value tuple.py │ │ ├── diff r y.txt │ │ └── time.py │ └── time.py ├── Manish Sharma_aryamanish2830_task 1and 2.pdf ├── TASK 5 python .pdf ├── python task 2.pdf └── python task 3.pdf ├── Meenal ├── Linux- assignment 1.docx ├── Linux- assignment 3.docx ├── Linux-assginment 2.docx └── Python- assignment 1.docx ├── Meghna ├── Assignment -2.txt ├── Assignment-1.txt ├── Assignment-4(python).txt └── assignment 3.txt ├── Mehul Sharma ├── Python_Class _1.txt └── Python_Class_2.txt ├── Mihika Mor ├── LinuxAssignment1.docx ├── LinuxAssignment2.docx ├── LinuxAssignment3.docx └── PythonAssignment1.docx ├── Mohit Arora ├── Mohit_Arora_Assigment1.txt ├── Mohit_Arora_Assignment10.txt ├── Mohit_Arora_Assignment2.txt ├── Mohit_Arora_Assignment3.txt ├── Mohit_Arora_Assignment5.txt ├── Mohit_Arora_Assignment6.txt ├── Mohit_Arora_Assignment7.txt ├── Mohit_Arora_Assignment8.txt ├── Mohit_Arora_Assignment9.txt └── Mohit_Arora_assignment4 ├── Mohit_Arora_Assignments ├── Mohit_Arora_Assignment1.txt ├── Mohit_Arora_Assignment10.txt ├── Mohit_Arora_Assignment2 .txt ├── Mohit_Arora_Assignment3.txt ├── Mohit_Arora_Assignment5.txt ├── Mohit_Arora_Assignment6.txt ├── Mohit_Arora_Assignment7.txt ├── Mohit_Arora_Assignment8.txt ├── Mohit_Arora_Assignment9.txt └── Mohit_Arora_assignment4.txt ├── Mukesh Choudhary ├── Linux │ ├── Linux REGex Assignment 1, 2, 3_Mukesh_Choudhary.docx │ └── Linux REGex Assignment 1, 2, 3_Mukesh_Choudhary.pdf └── Python │ ├── Assignment 2.ipynb │ ├── Assignment 3.ipynb │ ├── Python Assignment 1 Mukesh.docx │ └── Python Assignment 1 Mukesh.pdf ├── NAMAN JAIN ├── LINUX ASSIGNMENTS NJ.txt └── NJ PYTHON ASSIGNMENT(1&2).txt ├── Nikhil Carpenter ├── 6 Apr.txt ├── 7 Apr.txt ├── 8 Apr.txt ├── AWS.txt ├── ExcitingPythonTask01.py ├── ExcitingPythonTask02.py ├── ExcitingPythonTask03.py ├── Nikhil Carpenter │ ├── linux_assignment_1.txt │ ├── linux_assignment_2.txt │ ├── linux_assignment_3.txt │ ├── python_assignment_1.ipynb │ ├── python_assignment_2.ipynb │ ├── python_assignment_3.ipynb │ ├── python_assignment_4.ipynb │ ├── python_assignment_5.ipynb │ └── python_assignment_6.ipynb ├── WhatsappPython.py └── farms.csv ├── Nikhil Vaswani ├── Assignment 1.txt ├── Assignment Django1.txt ├── Assignment Linux 1.txt ├── Assignment Linux 2.txt ├── Assignment Python 1.txt ├── Assignment Python 2.txt ├── Assignment Python 3.txt ├── Assignment Python 4.txt ├── Assignment Python 5.txt ├── Assignment Python 6.txt ├── Assignment Python 7.txt └── Assignment_Django1.py ├── Nikita ├── 10 Apr.txt ├── 11 Apr.ipynb ├── 6 Apr.txt ├── 7 Apr.txt ├── 8 Apr.txt ├── assign3py.ipynb ├── assign4py.ipynb ├── assign5py.ipynb ├── assign6py.ipynb ├── assign7py.ipynb ├── assign8py.ipynb ├── assignment_aws.txt └── farm_data.csv ├── Nishtha Grover ├── Linux_Assign_1.docx ├── Linux_Assign_2.docx ├── Linux_Assign_3.docx ├── Nishth_Linux_Assign_3 ├── Python_assign_1.docx ├── Python_assign_2.docx └── python _assign_2_notebook.ipynb ├── Nitasha Gupta ├── assignment_aws_1.txt ├── assignment_dataScience_1.docx ├── assignment_datascience_2.docx ├── assignment_datascience_3.docx ├── assignment_lecture_3.txt ├── assignment_lecture_4.txt ├── assignment_lecture_5.txt ├── assignment_linux_6.txt ├── assignment_python_1.txt ├── assignment_python_2.rtf ├── assignment_python_3.docx ├── assignment_python_4.docx ├── assignment_python_5.docx ├── assignment_python_6.docx ├── assignment_python_7.docx ├── late_night_task_python.txt └── ~$signment_datascience_3.docx ├── Nitesh Mehto ├── LINUX 1 & 2 ASSIGNMENT └── python class 1 assignment.txt ├── Nooruddin Nagdi ├── Counting vowels.py └── area of triangle.py ├── PARTH ├── REGEX ASSIGNMENT.pdf └── REGEX ONLINE TRAINING PYTHON ASSIGNMENTS.docx ├── PUSAPATI SWETHA ├── assignment1- 07.04.2020.txt ├── assignment2- 08.04.2020.txt ├── assignment3- 10.04.2020.txt ├── assignment4- 11.04.2020.txt ├── assignment5- 12.04.2020.txt ├── assignment6- 13.04.2020.txt ├── assignment7- 14.04.2020.txt └── assignment8- 16.04.2020.txt ├── Piyush singh ├── Linux-01.txt ├── Linux-03.txt ├── Python-01.txt ├── Python-02.txt ├── Python-03.txt ├── Python-04.txt └── linux-02.txt ├── Pramit Vishwakarma ├── Linux-01.txt ├── Linux-03.txt ├── Python-01.txt ├── Python-02.txt ├── Python-03.txt ├── Python-04.txt └── linux-02.txt ├── Python Assignment 2 ├── Assignment 1.txt ├── Assignment 2.txt ├── Assignment 3.txt ├── Assignment 4.txt ├── Assignment 5.txt └── Late Night Task.txt ├── Python_Assignment_week2 ├── Python_Assignment_2_3.txt └── Python_Task.txt ├── REGex Training ├── 1st.py ├── LINUX ASSIGNMENT 1&2-- NIKUNJ.txt ├── hello ├── python class 1 assignment.txt ├── python class 2&3 assignmeht nikunj mehta.rtf └── python class 2&3 assignmeht nikunj mehta.zip ├── Rakhi Pareek ├── AWS │ └── AWS assignment.txt ├── Late Night Task-7(Final task of Python) │ └── late_night.py ├── Python Task 3 │ ├── Ass 1.py │ ├── Ass 2.py │ └── Ass 3.py ├── Python Task 5 │ ├── ass1.py │ ├── ass2.txt │ ├── ass3.py │ ├── ass4.py │ └── ass5.py ├── Python task1 │ └── Python-session 1(task 1).txt ├── Python-Task 6 │ ├── question1.py │ ├── question2.py │ ├── question3.py │ ├── question4.py │ ├── question5.py │ ├── question6.py │ └── question7.py ├── Task1 │ └── Assignment question.txt ├── Task2 │ └── Task2(Assignmnt questions).txt ├── Task3 │ └── Task3(assignment questions).txt ├── python task2 │ ├── question1.py │ ├── question2.py │ ├── question3.py │ └── question4.py └── python task4 │ ├── question1.py │ ├── question2.py │ ├── question3.py │ ├── question4.py │ └── question5.py ├── Rayvant Sahni ├── Linux_Assignment_1.docx ├── Linux_Assignment_2.docx ├── Linux_Assignment_3.docx ├── PYTHON ASSIGNMENT 3-b.docx ├── PYTHON ASSIGNMENT 4.docx ├── PYTHON ASSIGNMENT 5.docx ├── PYTHON ASSIGNMENT 6.docx ├── Python_Assignment_1.docx └── Python_Assignment_2.docx ├── Rishita_Regex_Assignments ├── Task 1.txt ├── Task 2.txt ├── Task 3.txt ├── Task 4.txt └── Task 5.txt ├── Riya Khanna ├── Python(1).txt ├── Python(2).txt ├── Task 1.txt ├── Task 2.txt └── Task 3.txt ├── SHRESHTHA GUPTA ├── SHRESHTHA GUPTA │ └── Talend Assignments │ │ ├── Aggregate.png │ │ ├── Filter_rows.png │ │ ├── Find_and_replace.png │ │ └── csv_to_xml.png ├── linux-1.txt ├── linux-2.txt ├── linux-3.txt ├── python-1.txt ├── python-2.txt ├── python-3.txt ├── python-4.txt ├── python-5.txt └── python-6.txt ├── Shivani Singh ├── LINUX Assignment.txt ├── Regex Assignment │ ├── Assignment.txt │ ├── LINUX Assignment.txt │ └── python Assignment 1.txt ├── python Assignment 1.txt └── python_assignment │ └── 2ndweekassignment │ └── Python Assignment 2.txt ├── Shruti ├── task1_shrutijain_batchA_linux.docx ├── task1_shrutijain_batchA_python.docx ├── task2_shrutijain_BatchA_linux.docx └── task3_shrutijain_batchA_linux.docx ├── Shubham ├── Assignment 1 6th April.txt ├── Assignment 2 7th April.txt ├── Assignment 3 8th April.txt ├── Linux │ └── Linux_Assignments.txt ├── Python class 1 Assignment.txt └── Python │ └── Python Assignments.txt ├── Shubhang Vats ├── AWS Ass.-1 │ └── AWS Task 1.txt ├── Python-Task 3 │ ├── question1.py │ ├── question2.py │ └── question3.py ├── Python-Task 1 │ └── Python-session 1(task 1).txt ├── Python-Task 2 │ ├── question1.py │ ├── question2.py │ ├── question3.py │ └── question4.py ├── Python-Task 4 │ ├── question1.py │ ├── question2.py │ ├── question3.py │ ├── question4.py │ └── question5.py ├── Python-Task 5 │ ├── question1.py │ ├── question2.txt │ ├── question3.py │ ├── question4.py │ └── question5.py ├── Python-Task 6 │ ├── A.txt │ ├── B.txt │ ├── C.txt │ ├── D.txt │ ├── E.txt │ ├── F.txt │ ├── G.txt │ ├── H.txt │ ├── I.txt │ ├── J.txt │ ├── K.txt │ ├── L.txt │ ├── M.txt │ ├── N.txt │ ├── O.txt │ ├── P.txt │ ├── Q.txt │ ├── R.txt │ ├── S.txt │ ├── T.txt │ ├── U.txt │ ├── V.txt │ ├── W.txt │ ├── X.txt │ ├── Y.txt │ ├── abc.txt │ ├── question1.py │ ├── question2.py │ ├── question3.py │ ├── question4.py │ ├── question5.py │ ├── question6.py │ ├── question7.py │ ├── words1.txt │ └── xyz.txt ├── Python-Task 7 │ └── Late_night_task.py ├── Task 1 │ ├── Session #3(Late Night task - Question 2).txt │ ├── Session #3{Late Night task - Question 1).txt │ └── Task-1.txt ├── Task 2 │ └── Session #4-Task 2.txt └── Task 3 │ └── session #5 - Task 3.txt ├── Sukriti Shah ├── Sukriti Shah - Linux - 1.docx ├── Sukriti Shah - Linux - 2.docx ├── Sukriti Shah - Linux - 3.docx ├── Sukriti Shah - Python - 1.docx └── Sukriti Shah - Python - 2.docx ├── Sunita Kumari ├── Assignment_Linux.docx ├── Assignment_Linux_Session#3,#4.docx ├── Assignment_Linux_Session#5.docx ├── Assignment_Python_Session#1.docx └── Assignment_Python_Session#2.docx ├── Takshil Patel ├── Assingment 1.txt ├── Assingment 2.doc ├── Assingment 3.doc ├── Assingment 4(Python).doc └── Assingment 5(Python).doc ├── Tanuj Kumawat ├── Linux Assignment 1.txt ├── Linux assignment 2.txt ├── Linux assignment 3.txt ├── Python Assignment 1.txt ├── python assignment 2.txt ├── python assignment 3.txt ├── python assignment 4.txt ├── python assignment 5.txt ├── python assignment 6.txt └── python assignment 7.txt ├── Tushar Goyal └── Fdata.py ├── _config.yml ├── aditilohomi ├── linux (1-3).docx ├── python(1-2).docx └── python(1-3).docx ├── geeta └── assignment.docx ├── hemantharsh1512 ├── ass1 (1).pdf ├── ass2.pdf ├── ass3.pdf └── python assignments (1) │ ├── python assignments (1).pdf │ ├── python assignments (2).pdf │ └── python3ass..pdf ├── hitanshi ├── Linux-01.txt ├── Linux-03 1.txt ├── Python-01 1.txt ├── Python-02 1.txt ├── Python-03.txt ├── Python-04 1.txt └── linux-02.txt ├── hitesh khandelwal └── linux asy 1.txt ├── kashish jain ├── linux assignment.txt └── python assignment.txt ├── kirti 2 ├── assg 3.txt ├── assg 4 python.txt ├── assg 5 python.txt ├── assg 6 python.txt └── python late night task.txt ├── kirti ├── assg 1 python.txt ├── assg 1.txt ├── assg 2 python.txt ├── assg 2.txt └── assg 3 python.txt ├── kumar swastik ├── Assignment_Linux.docx ├── Assignment_Linux_Session#3,#4.docx ├── Assignment_Linux_Session#5.docx ├── Assignment_Python #5.docx ├── Assignment_Python #6 (1).docx ├── Assignment_Python #6.docx ├── Assignment_Python #7.docx ├── Assignment_Python_Session#1.docx └── Assignment_Python_Session#2.docx ├── online-python-series ├── assignment2.txt └── ifconditions.py ├── python_assignment ├── 2ndweekassignment │ └── Python Assignment 2.txt └── Shivani Singh │ └── Regex Assignment │ └── Assignment.txt ├── regex training ├── Linux-01.txt ├── Linux-03.txt ├── Python-01.txt ├── Python-02.txt ├── Python-03.txt ├── Python-04.txt └── linux-02.txt ├── regex ├── Task 1.txt └── Task 2.txt ├── repo testing └── New Text Document.txt ├── rishita ├── Task 1.txt ├── Task 2.txt ├── Task 3.txt ├── Task 4.txt └── Task 5.txt ├── somesh shivnani ├── Assignment2.ipynb ├── Assignment3.ipynb ├── Assignment4.ipynb ├── assignment1.ipynb ├── for_6quest.txt └── for_read.txt ├── summer2020 ├── linuxfirst.txt ├── linuxsecond.txt ├── linuxthird.txt ├── pythonclass1.txt ├── pythonclass2.txt └── pythonclass3.txt ├── vanshika garg ├── regex task 1.txt ├── regex task 2.txt ├── regex task3.txt ├── regex task4.txt └── vanshikagarg │ ├── python assignment 3.txt │ ├── python assignment 4.txt │ ├── python task2.txt │ ├── python task3.txt │ └── python task4.txt └── vishakha_rungta ├── Python Assignment 1.txt └── python Assignment 2.txt /Akshay Sorathia REGEX ASSIGNMENTS/ASSIGNMENT 3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Akshay Sorathia REGEX ASSIGNMENTS/ASSIGNMENT 3.docx -------------------------------------------------------------------------------- /Akshay Sorathia REGEX ASSIGNMENTS/AWS_Assignment_1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Akshay Sorathia REGEX ASSIGNMENTS/AWS_Assignment_1.docx -------------------------------------------------------------------------------- /Akshay Sorathia REGEX ASSIGNMENTS/Assignment_1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Akshay Sorathia REGEX ASSIGNMENTS/Assignment_1.docx -------------------------------------------------------------------------------- /Akshay Sorathia REGEX ASSIGNMENTS/Assignment_2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Akshay Sorathia REGEX ASSIGNMENTS/Assignment_2.docx -------------------------------------------------------------------------------- /Akshay Sorathia REGEX ASSIGNMENTS/Assignment_4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Akshay Sorathia REGEX ASSIGNMENTS/Assignment_4.docx -------------------------------------------------------------------------------- /Akshay Sorathia REGEX ASSIGNMENTS/Assignment_5.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Akshay Sorathia REGEX ASSIGNMENTS/Assignment_5.docx -------------------------------------------------------------------------------- /Akshay Sorathia REGEX ASSIGNMENTS/Assignment_6.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Akshay Sorathia REGEX ASSIGNMENTS/Assignment_6.docx -------------------------------------------------------------------------------- /Akshay Sorathia REGEX ASSIGNMENTS/Linux_Assignment_4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Akshay Sorathia REGEX ASSIGNMENTS/Linux_Assignment_4.docx -------------------------------------------------------------------------------- /Akshay Sorathia REGEX ASSIGNMENTS/Python_Assignment_4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Akshay Sorathia REGEX ASSIGNMENTS/Python_Assignment_4.docx -------------------------------------------------------------------------------- /Akshay Sorathia REGEX ASSIGNMENTS/Python_Assignment_5.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Akshay Sorathia REGEX ASSIGNMENTS/Python_Assignment_5.docx -------------------------------------------------------------------------------- /Akshay Sorathia REGEX ASSIGNMENTS/Python_Assignment_6.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Akshay Sorathia REGEX ASSIGNMENTS/Python_Assignment_6.docx -------------------------------------------------------------------------------- /Akshay Sorathia REGEX ASSIGNMENTS/Python_LATE_NIGHT_ASSIGNMENT.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Akshay Sorathia REGEX ASSIGNMENTS/Python_LATE_NIGHT_ASSIGNMENT.docx -------------------------------------------------------------------------------- /Aman Baheti/Assignment 1 Python.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Aman Baheti/Assignment 1 Python.txt -------------------------------------------------------------------------------- /Aman Baheti/Assignment 1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Aman Baheti/Assignment 1.txt -------------------------------------------------------------------------------- /Aman Baheti/Assignment 2 Linux.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Aman Baheti/Assignment 2 Linux.txt -------------------------------------------------------------------------------- /Aman Baheti/Python Class 3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Aman Baheti/Python Class 3.txt -------------------------------------------------------------------------------- /AmanGupta/Linux_Assignment1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/AmanGupta/Linux_Assignment1.docx -------------------------------------------------------------------------------- /AmanGupta/Linux_Assignment2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/AmanGupta/Linux_Assignment2.docx -------------------------------------------------------------------------------- /AmanGupta/Linux_Assignment4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/AmanGupta/Linux_Assignment4.docx -------------------------------------------------------------------------------- /AmanGupta/PYTHON ASSIGNMENT2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/AmanGupta/PYTHON ASSIGNMENT2.docx -------------------------------------------------------------------------------- /AmanGupta/Python Ass3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/AmanGupta/Python Ass3.docx -------------------------------------------------------------------------------- /AmanGupta/Python Task.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/AmanGupta/Python Task.docx -------------------------------------------------------------------------------- /AmanGupta/PythonAssignmentC1,2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/AmanGupta/PythonAssignmentC1,2.docx -------------------------------------------------------------------------------- /AmanGupta/Python_Assignment1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/AmanGupta/Python_Assignment1.docx -------------------------------------------------------------------------------- /Amit Dubey/AWS_ASSIGNMENT1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Amit Dubey/AWS_ASSIGNMENT1.docx -------------------------------------------------------------------------------- /Amit Dubey/Assignment_1_lec_3.txt: -------------------------------------------------------------------------------- 1 | Q-1) When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done? 2 | Ans -> The /etc/skel directory contains files and directories that are automatically copied over to a new user's home directory when such user is created by the useradd 3 | program. 4 | Several user configuration files are placed in /etc/skel by default when the operating system is installed. Typically they might include .bash_profile, .bashrc, 5 | .bash_logout, dircolors, .inputrc and .vimrc. 6 | The Home Directory has the following hidden files: 7 | ->System Settings: 8 | ->Configuration files 9 | ->User Profiles 10 | ->Desktop Environment Settings 11 | ->Application Configuration Profiles: 12 | ->Configuration files for applications 13 | ->Web browser data 14 | ->Caches 15 | ->Logs 16 | 17 | Q-2) Make sub directories inside a parent directory by using single mkdir command: 18 | Ans -> mkdir -p A/B/C 19 | 20 | Q-3) Why user folder is not created in by using useradd command? 21 | Ans -> When a user is created using useradd command, no shell is allocated to that user, so for the folder of the user to be created, one need to first create user 22 | using useradd and the after assigning a password by in the /etc/passwd file. 23 | -------------------------------------------------------------------------------- /Amit Dubey/Assignment_2_lec_4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Amit Dubey/Assignment_2_lec_4.docx -------------------------------------------------------------------------------- /Amit Dubey/Assignment_3_lec_5.txt: -------------------------------------------------------------------------------- 1 | Q-1) Create new user and at the same time you have to add the user into group 2 | Ans-> By command: useradd -G groupname username 3 | 4 | Q-2) How to unzip the bz2 file? 5 | Ans-> By command : bzip2 -d filename.bz2 (-d option is for decompressing) 6 | 7 | Q-3) Create archive+compressed file with extension bz2 and in that include some file with data&folder 8 | Ans-> By command: tar -cfvj archive.tar.bz2 file1 file2 9 | 10 | Q-4) Add user and at the same time change the shell of the user to /bin/sh 11 | Ans-> By command: useradd -s /bin/sh username 12 | 13 | -------------------------------------------------------------------------------- /Amit Dubey/Assignment_4_Python.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Amit Dubey/Assignment_4_Python.docx -------------------------------------------------------------------------------- /Amit Dubey/Assignment_5_Python.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Amit Dubey/Assignment_5_Python.docx -------------------------------------------------------------------------------- /Amit Dubey/Assignment_6_Python_3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Amit Dubey/Assignment_6_Python_3.docx -------------------------------------------------------------------------------- /Amit Dubey/LINUX_ASSIGNMENT4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Amit Dubey/LINUX_ASSIGNMENT4.docx -------------------------------------------------------------------------------- /Amit Dubey/PYTHON Assignment_4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Amit Dubey/PYTHON Assignment_4.docx -------------------------------------------------------------------------------- /Amit Dubey/PYTHON_Late_Night.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Amit Dubey/PYTHON_Late_Night.docx -------------------------------------------------------------------------------- /Amit Dubey/Python Tasks.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Amit Dubey/Python Tasks.docx -------------------------------------------------------------------------------- /Amit Dubey/Python_Assignment_5.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Amit Dubey/Python_Assignment_5.docx -------------------------------------------------------------------------------- /Amit Dubey/Python_Assignment_6.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Amit Dubey/Python_Assignment_6.docx -------------------------------------------------------------------------------- /Anshita Laddha/Linux Assignment-1,2,3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Anshita Laddha/Linux Assignment-1,2,3.pdf -------------------------------------------------------------------------------- /Anshita Laddha/Python Assignment-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Anshita Laddha/Python Assignment-1.pdf -------------------------------------------------------------------------------- /Assignmentofregex/Assignment 1 6th April.txt: -------------------------------------------------------------------------------- 1 | Assignment 1 2 | 3 | 1) When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done ? 4 | 5 | Ans. It is done because these files are in the folder /etc/skel and whichever files we place in this folder those files will be 6 | made available in the home directory of all the users which we create afterwards. 7 | For reference following are some commands to create a file in /etc/skel and creating and listing files in /home/user 8 | files 9 | Note:- Make sure you've logged in to root user :- 10 | 1. cd /etc/root 11 | 2. vim TestingFiles.txt 12 | --> Hello This is testing content in TestingFiles.txt document 13 | close the file by pressing :wq and press enter. 14 | 3. useradd RedhatUser 15 | 4. ls /home/RedhatUser 16 | Now you'll find the TestingFiles.txt document in this folder which is the proof that whichever files we put in the folder 17 | /etc/skel will be available to all the users created after it. 18 | 19 | 20 | 2) Make sub directories inside a parent directory by using single mkdir command. 21 | 22 | Ans. mkdir -p A/B/C (-p for parent directoy option). -------------------------------------------------------------------------------- /Assignments Regex (Rishu)/ASSIGNMENT 3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Assignments Regex (Rishu)/ASSIGNMENT 3.docx -------------------------------------------------------------------------------- /Assignments Regex (Rishu)/Day-1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Assignments Regex (Rishu)/Day-1.docx -------------------------------------------------------------------------------- /Assignments Regex (Rishu)/Day-2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Assignments Regex (Rishu)/Day-2.docx -------------------------------------------------------------------------------- /Assignments Regex (Rishu)/Day-3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Assignments Regex (Rishu)/Day-3.docx -------------------------------------------------------------------------------- /Assignments Regex (Rishu)/PYTHON ASSIGNMENT -4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Assignments Regex (Rishu)/PYTHON ASSIGNMENT -4.docx -------------------------------------------------------------------------------- /Assignments Regex (Rishu)/PYTHON CLASS 3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Assignments Regex (Rishu)/PYTHON CLASS 3.docx -------------------------------------------------------------------------------- /Assignments Regex (Rishu)/python assignment 1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Assignments Regex (Rishu)/python assignment 1.docx -------------------------------------------------------------------------------- /Assignments Regex (Rishu)/python assignment 2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Assignments Regex (Rishu)/python assignment 2.docx -------------------------------------------------------------------------------- /Assignments Regex (Rishu)/~$Day-2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Assignments Regex (Rishu)/~$Day-2.docx -------------------------------------------------------------------------------- /Assignments Regex (Rishu)/~$Day-3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Assignments Regex (Rishu)/~$Day-3.docx -------------------------------------------------------------------------------- /Avi Kasliwal (Regex Training)/Linux/Assignment3.md: -------------------------------------------------------------------------------- 1 | # Assignment 3 [Linux] [Avi Kasliwal] 2 | 3 | 4 | ## 1. Create & compress the file with bzip2. 5 | Bzip2 is a well known compression tool and it’s available on most if not all the major Linux distributions. 6 | ``` 7 | sudo apt install bzip2 8 | bzip2 option(s) filenames #Creation 9 | bzip2 -z filename #Compress 10 | bzip2 -z linux.tar #Compress a tar file. 11 | ``` 12 | 13 | ## 2. What should be the argument to be given to unzip that file. 14 | **Use unzip:** 15 | ``` 16 | sudo apt install unzip 17 | unzip backup.zip 18 | ``` 19 | 20 | ## 3. Read a file & show the data on terminal using file input & output redirection 21 | ``` 22 | gedit information.txt #Type the required info 23 | cat information.txt 24 | echo Name >>information.txt 25 | ``` 26 | 27 | 28 | ## 4. How to change the shell of user to “/bin/sh” at the time of adding the user 29 | ``` 30 | useradd -s /bin/sh 31 | Eg useradd -s /bin/sh Matt 32 | ``` 33 | -------------------------------------------------------------------------------- /Ayush Goyal (Assignments)/linux assignment/Assignment3.md: -------------------------------------------------------------------------------- 1 | # Assignment 3 [Linux] [Ayush Goyal] 2 | 3 | ## 1. Create & compress the file with bzip2. 4 | Bzip2 is a well known compression tool and it’s available on most if not all the major Linux distributions. 5 | ``` 6 | sudo apt install bzip2 7 | bzip2 option(s) filenames #Creation 8 | bzip2 -z filename #Compress 9 | bzip2 -z linux.tar #Compress a tar file. 10 | ``` 11 | 12 | ## 2. What should be the argument to be given to unzip that file. 13 | **Use unzip:** 14 | ``` 15 | sudo apt install unzip 16 | unzip backup.zip 17 | ``` 18 | 19 | ## 3. Read a file & show the data on terminal using file input & output redirection 20 | ``` 21 | gedit information.txt #Type the required info 22 | cat information.txt 23 | echo Name >>information.txt 24 | ``` 25 | 26 | 27 | ## 4. How to change the shell of user to “/bin/sh” at the time of adding the user 28 | ``` 29 | useradd -s /bin/sh 30 | Eg useradd -s /bin/sh Matt 31 | ``` 32 | -------------------------------------------------------------------------------- /Ayush Goyal/linux assignment/Assignment3.md: -------------------------------------------------------------------------------- 1 | # Assignment 3 [Linux] [Ayush Goyal] 2 | 3 | ## 1. Create & compress the file with bzip2. 4 | Bzip2 is a well known compression tool and it’s available on most if not all the major Linux distributions. 5 | ``` 6 | sudo apt install bzip2 7 | bzip2 option(s) filenames #Creation 8 | bzip2 -z filename #Compress 9 | bzip2 -z linux.tar #Compress a tar file. 10 | ``` 11 | 12 | ## 2. What should be the argument to be given to unzip that file. 13 | **Use unzip:** 14 | ``` 15 | sudo apt install unzip 16 | unzip backup.zip 17 | ``` 18 | 19 | ## 3. Read a file & show the data on terminal using file input & output redirection 20 | ``` 21 | gedit information.txt #Type the required info 22 | cat information.txt 23 | echo Name >>information.txt 24 | ``` 25 | 26 | 27 | ## 4. How to change the shell of user to “/bin/sh” at the time of adding the user 28 | ``` 29 | useradd -s /bin/sh 30 | Eg useradd -s /bin/sh Matt 31 | ``` 32 | -------------------------------------------------------------------------------- /Chandni/10 Apr.txt: -------------------------------------------------------------------------------- 1 | 1) What is jpython & cpython ? 2 | cpython is written in c language. It compiles the python source code into intermediate bytecode whuch is executed by cpython virtual machine. 3 | jpython can run on java platform. It uses java classes instead of python modules. 4 | 5 | 2) Difference between python2 & python3 6 | In python2 print statement doesnot need parenthesis but in python3 print is a function & values need to be written in parenthesis. 7 | python2 uses <> for notequal & python3 use != for notequal. 8 | python2 has raw_input() that reads string & input() evaluates data read but in python3 raw_input() is not available & input() reads string. 9 | in python3 .format() function is used instead of %. 10 | 11 | 3) Diffrence between ASCII & Unicode 12 | ASCII uses 8-bit encoding while unicode uses variable bit encoding like 8,16,32. 13 | unicode has a much wide range of characters compared to ascii which has only 128 characters. 14 | ascii requires less space unicode requires more space. 15 | 16 | -------------------------------------------------------------------------------- /Chandni/6 Apr.txt: -------------------------------------------------------------------------------- 1 | Diffrence between adduser & useradd 2 | adduser :- adduser command creates user as well as set up the user's directory in home folder with account's other default settings. 3 | useradd :- useradd olny creates the user & doesnot creates user's directory automatically if not specified with -m. -------------------------------------------------------------------------------- /Chandni/7 Apr.txt: -------------------------------------------------------------------------------- 1 | 1) To change umask value permanently 2 | Go to /etc/profile file then change default umask value then save & exit. Now your umask value has been changed permanently you can check it on terminal. 3 | (vi /etc/profile. edit umask value in it. save & exit.) 4 | 5 | 2) Add new user without using adduser & useradd command 6 | Step 1 : add an entry for user in /etc/passwd file 7 | Step 2 : add an entry for group in /etc/group file 8 | Step 3 : create home directory for added user with mkdir command 9 | Step 4 : set new user password using passwd command 10 | 11 | 3)Can we change the umask value to 0888 ? 12 | no, we cannot change the umask value to 0888 as the maximum umask value is can be 0666 as the binaries & scripts in linux have execute permissions. 13 | 14 | 4)To add new user with unique user id & check it 15 | useradd -u 1234 abc 16 | to check uid : id -u abc 17 | 18 | 5) Change group of any folder 19 | chgrp grpname directoryname 20 | a) group of files present in the directory will not change only thr group of directory is changed 21 | b)chgrp -R grpname directoryname -------------------------------------------------------------------------------- /Chandni/8 Apr.txt: -------------------------------------------------------------------------------- 1 | 1)Create new user & add it into the group that you already have 2 | useradd -g grpname usrname 3 | 4 | 2)To unzip bzip2 file 5 | bzip2 -d filename.bz2 6 | 7 | 3)Archieve & compress bz2 file with some files with data & a folder 8 | tar -czvf xyz.tar.bz2 /home/ubuntu/d1/ /home/ubuntu/file1.txt /home/ubuntu/file2.txt 9 | 10 | 4)Add a user & at the same time change its shell to /bin/sh 11 | useradd -s /bin/sh usrname -------------------------------------------------------------------------------- /Chandni/farm_data.csv: -------------------------------------------------------------------------------- 1 | Farm_Name,Location 2 | Royal Emu Farm & Hatcheries,"Vadodara,Gujarat" 3 | Vasupujya Dragon Fruit Farm,"Kharua,Gujarat" 4 | SINGHVIS FARM,"Mithi Rohar,Gujarat" 5 | GreenTokri Farms,"Pune,Maharashtra" 6 | Gujarat Dragon Fruit Farm,"Kalavad,Gujarat" 7 | Maharishi orchards,"New Delhi,Delhi" 8 | Manveer Apple Orchards,"New Delhi,Delhi" 9 | ARMO Pomegranate Farm,"Nagpur,Maharashtra" 10 | Hamsah Organic Farm,"Bengaluru,Karnataka" 11 | Blue Jamoon Farm,"Bengaluru,Karnataka" 12 | Prakash Strawberry Farm,"Ooty,Tamil Nadu" 13 | -------------------------------------------------------------------------------- /Deepanshu Gurdasani/Assignment 1 6th April.txt: -------------------------------------------------------------------------------- 1 | Assignment 1 2 | 3 | 1) When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done ? 4 | 5 | Ans. It is done because these files are in the folder /etc/skel and whichever files we place in this folder those files will be 6 | made available in the home directory of all the users which we create afterwards. 7 | For reference following are some commands to create a file in /etc/skel and creating and listing files in /home/user 8 | files 9 | Note:- Make sure you've logged in to root user :- 10 | 1. cd /etc/root 11 | 2. vim TestingFiles.txt 12 | --> Hello This is testing content in TestingFiles.txt document 13 | close the file by pressing :wq and press enter. 14 | 3. useradd RedhatUser 15 | 4. ls /home/RedhatUser 16 | Now you'll find the TestingFiles.txt document in this folder which is the proof that whichever files we put in the folder 17 | /etc/skel will be available to all the users created after it. 18 | 19 | 20 | 2) Make sub directories inside a parent directory by using single mkdir command. 21 | 22 | Ans. mkdir -p A/B/C (-p for parent directoy option). -------------------------------------------------------------------------------- /Deepanshu Gurdasani/Assignment 3 8th April.txt: -------------------------------------------------------------------------------- 1 | 8th April Assignment-3 2 | 3 | 1). Create and compress file with extension bzip2. 4 | Ans 3. tar -cvzf ContentFile.tar.bz2 content.txt 5 | 6 | 2) What should be the argument to be given to unzip that file.? 7 | Ans 2. bzip2 -d filename.bz2 where -d specifies Decompress 8 | 9 | 3) Read a file & show the data on terminal using file input & output redirection 10 | Ans3 cat < File.txt 11 | 12 | 4) How to change the shell of user to “/bin/sh” at the time of adding the user 13 | 14 | Ans 4. useradd -s /bin/sh RedhatUser -------------------------------------------------------------------------------- /Devansh Soni/Assignment 1 6th April.txt: -------------------------------------------------------------------------------- 1 | Assignment 1 2 | 3 | 1) When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done ? 4 | 5 | Ans. It is done because these files are in the folder /etc/skel and whichever files we place in this folder those files will be 6 | made available in the home directory of all the users which we create afterwards. 7 | For reference following are some commands to create a file in /etc/skel and creating and listing files in /home/user 8 | files 9 | Note:- Make sure you've logged in to root user :- 10 | 1. cd /etc/root 11 | 2. vim TestingFiles.txt 12 | --> Hello This is testing content in TestingFiles.txt document 13 | close the file by pressing :wq and press enter. 14 | 3. useradd RedhatUser 15 | 4. ls /home/RedhatUser 16 | Now you'll find the TestingFiles.txt document in this folder which is the proof that whichever files we put in the folder 17 | /etc/skel will be available to all the users created after it. 18 | 19 | 20 | 2) Make sub directories inside a parent directory by using single mkdir command. 21 | 22 | Ans. mkdir -p A/B/C (-p for parent directoy option). -------------------------------------------------------------------------------- /Devansh Soni/Assignment 3 8th April.txt: -------------------------------------------------------------------------------- 1 | 8th April Assignment-3 2 | 3 | 1). Create and compress file with extension bzip2. 4 | Ans 3. tar -cvzf ContentFile.tar.bz2 content.txt 5 | 6 | 2) What should be the argument to be given to unzip that file.? 7 | Ans 2. bzip2 -d filename.bz2 where -d specifies Decompress 8 | 9 | 3) Read a file & show the data on terminal using file input & output redirection 10 | Ans3 cat < File.txt 11 | 12 | 4) How to change the shell of user to “/bin/sh” at the time of adding the user 13 | 14 | Ans 4. useradd -s /bin/sh RedhatUser -------------------------------------------------------------------------------- /Gargi Patel/linux/Gargi Patel - assignment task 1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Gargi Patel/linux/Gargi Patel - assignment task 1.docx -------------------------------------------------------------------------------- /Gargi Patel/linux/Gargi Patel - assignment task 2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Gargi Patel/linux/Gargi Patel - assignment task 2.docx -------------------------------------------------------------------------------- /Gargi Patel/linux/Gargi Patel - assignment task 3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Gargi Patel/linux/Gargi Patel - assignment task 3.docx -------------------------------------------------------------------------------- /Gargi Patel/python/Gargi Patel - assignment 1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Gargi Patel/python/Gargi Patel - assignment 1.docx -------------------------------------------------------------------------------- /Gaurav Bhojwani/gaurav linux assignment.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Gaurav Bhojwani/gaurav linux assignment.docx -------------------------------------------------------------------------------- /Harish Kumar Jangir/Late Night Task.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harish Kumar Jangir/Late Night Task.docx -------------------------------------------------------------------------------- /Harish Kumar Jangir/assignment 2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harish Kumar Jangir/assignment 2.docx -------------------------------------------------------------------------------- /Harish Kumar Jangir/assignment 3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harish Kumar Jangir/assignment 3.docx -------------------------------------------------------------------------------- /Harish Kumar Jangir/python assignment 1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harish Kumar Jangir/python assignment 1.docx -------------------------------------------------------------------------------- /Harish Kumar Jangir/python assignment 2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harish Kumar Jangir/python assignment 2.docx -------------------------------------------------------------------------------- /Harish Kumar Jangir/python assignment 3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harish Kumar Jangir/python assignment 3.docx -------------------------------------------------------------------------------- /Harish Kumar Jangir/python assignment 4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harish Kumar Jangir/python assignment 4.docx -------------------------------------------------------------------------------- /Harsh Dhamecha/Data Science Assignment/Assignment 1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/Data Science Assignment/Assignment 1.pdf -------------------------------------------------------------------------------- /Harsh Dhamecha/Linux Assignment/Assignment 3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/Linux Assignment/Assignment 3.pdf -------------------------------------------------------------------------------- /Harsh Dhamecha/Linux Assignment/Assignment_1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/Linux Assignment/Assignment_1.pdf -------------------------------------------------------------------------------- /Harsh Dhamecha/Linux Assignment/Assignment_2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/Linux Assignment/Assignment_2.pdf -------------------------------------------------------------------------------- /Harsh Dhamecha/Python Assignment/Assignment 3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/Python Assignment/Assignment 3.pdf -------------------------------------------------------------------------------- /Harsh Dhamecha/Python Assignment/Assignment 4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/Python Assignment/Assignment 4.pdf -------------------------------------------------------------------------------- /Harsh Dhamecha/Python Assignment/Assignment 5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/Python Assignment/Assignment 5.pdf -------------------------------------------------------------------------------- /Harsh Dhamecha/Python Assignment/Assignment 6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/Python Assignment/Assignment 6.pdf -------------------------------------------------------------------------------- /Harsh Dhamecha/Python Assignment/Assignment 7.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/Python Assignment/Assignment 7.pdf -------------------------------------------------------------------------------- /Harsh Dhamecha/Python Assignment/Assignment 8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/Python Assignment/Assignment 8.pdf -------------------------------------------------------------------------------- /Harsh Dhamecha/Python Assignment/Assignment_1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/Python Assignment/Assignment_1.pdf -------------------------------------------------------------------------------- /Harsh Dhamecha/Python Assignment/Assignment_2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/Python Assignment/Assignment_2.pdf -------------------------------------------------------------------------------- /Harsh Dhamecha/assignment.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Harsh Dhamecha/assignment.docx -------------------------------------------------------------------------------- /Harsh kumar/Harsh kumar/assignment1.txt: -------------------------------------------------------------------------------- 1 | Q1- When we create a user,some hidden files are generated in he directory of the same user at that time. How is it done? 2 | 3 | Answer- When we create a user, a command is executed. A command is a program. Now what happens after execution of a program its all about what is written within that program. We can see hidden file by using ls command.In that program which we can called file contains touch , file creation command. 4 | 5 | 6 | 7 | Q2-Make sub Directories inside a parent directory by using single mkdir command? 8 | 9 | Answer- mkdir -p Harsh/{School,images,note,Music}. 10 | -p denotes that we create a parent directory. 11 | 12 | Q3-Tac vs Cat command? 13 | 14 | Answer-tac command in Linux is used to concatenate and print files in reverse. This command will write each FILE to standard output, the last line first. 15 | When no file is specified then this command will read the standard input. 16 | Syntax:tac [file] 17 | 18 | Example: It will print files in reverse. 19 | 20 | Cat is most commonly used to display the contents of one or multiple text files, combine files by appending the contents of one file to the end of another file, and create new files. 21 | 22 | Syntax:cat [OPTIONS] [FILE_NAMES] 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Harsh kumar/Harsh kumar/assignment3.txt: -------------------------------------------------------------------------------- 1 | Q1.Create & compress the file with bzip2? 2 | 3 | Answer-bzip2 file.txt 4 | 5 | Q2.What should be the argument to be given to unzip that file? 6 | 7 | Answer-unzip filename.zip 8 | 9 | Q3. Read a file & show the data on terminal using file input & output redirection? 10 | 11 | Answer-Output(to show the data) 12 | ls > Harsh_Sinha.txt 13 | input(to read data) 14 | sort < Harsh_Sinha.txt 15 | 16 | Q4.How to change the shell of user to “/bin/sh” at the time of adding the user? 17 | 18 | Answer-chsh /bin/sh -------------------------------------------------------------------------------- /Harsh kumar/Harsh kumar/python 1.txt: -------------------------------------------------------------------------------- 1 | Q1.What is JPython & CPython? 2 | 3 | Answer-CPython is the implementation, which was written in C language. It ends up producing bytecode 4 | which is Python specific and then executes it. 5 | 6 | Jython is an implementation of the Python programming language designed to run on the Java platform. 7 | The implementation was formerly known as JPython until 1999. 8 | 9 | 10 | Q1.Basic difference between Python2 & python3? 11 | 12 | Answer-In python2 we have to take input from user by using writing statement input.But 13 | In python3 we have a input() that take input from user. 14 | 15 | In python2 we have show a any statement by using print 16 | In Python3 we have a print() to automatically print statement. 17 | 18 | Q3.Difference between ASCII & unicode? 19 | 20 | Anser-ASCII originally used seven bits to encode each character. But 21 | UNICODE uses a variable bit encoding program where you can choose between 32, 16, and 8-bit encoding. 22 | 23 | ASCII has its equivalent within Unicode. 24 | UNICODE represents most written languages in the world while ASCII does not. 25 | 26 | 27 | -------------------------------------------------------------------------------- /Hemant singh/linux assignment 2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Hemant singh/linux assignment 2.docx -------------------------------------------------------------------------------- /Hemant singh/linux assignment1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Hemant singh/linux assignment1.docx -------------------------------------------------------------------------------- /Hemant singh/linux assignment3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Hemant singh/linux assignment3.docx -------------------------------------------------------------------------------- /Hemant singh/python assignment 2 (class 2).docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Hemant singh/python assignment 2 (class 2).docx -------------------------------------------------------------------------------- /Hemant singh/python assignment 2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Hemant singh/python assignment 2.docx -------------------------------------------------------------------------------- /Hemant singh/python assignment 3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Hemant singh/python assignment 3.docx -------------------------------------------------------------------------------- /Hemant singh/python assignment1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Hemant singh/python assignment1.docx -------------------------------------------------------------------------------- /Hemant singh/task.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Hemant singh/task.docx -------------------------------------------------------------------------------- /Jatin Gupta[RHCSA-RHCE]/Assignment 1 6th April.txt: -------------------------------------------------------------------------------- 1 | Assignment 1 2 | 3 | 1) When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done ? 4 | 5 | Ans. It is done because these files are in the folder /etc/skel and whichever files we place in this folder those files will be 6 | made available in the home directory of all the users which we create afterwards. 7 | For reference following are some commands to create a file in /etc/skel and creating and listing files in /home/user 8 | files 9 | -> cd /etc/root 10 | -> touch TestFile 11 | -> useradd RedhatUser 12 | -> ls /home/RedhatUser 13 | Now you'll find the TestFile document in this folder which is the proof that whichever files we put in the folder 14 | /etc/skel will be available to all the users created after it. 15 | 16 | 17 | 2) Make sub directories inside a parent directory by using single mkdir command. 18 | 19 | Ans. mkdir -p A/B/C (-p for parent directoy option). -------------------------------------------------------------------------------- /Jatin Gupta[RHCSA-RHCE]/Assignment 3.txt: -------------------------------------------------------------------------------- 1 | Assignment-3 2 | 3 | 1) Create & compress the file with bzip2. 4 | 5 | 2) What should be the argument to be given to unzip that file. 6 | 7 | 3) Read a file & show the data on terminal using file input & output redirection 8 | 9 | 4) How to change the shell of user to “/bin/sh” at the time of adding the user 10 | 11 | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 12 | 13 | Ans 1 #tar -cvzf ContentFile.tar.bz2 content.txt. 14 | 15 | Ans 2 #bzip2 -d filename.bz2 (-d specifies Decompress). 16 | 17 | Ans 3 #cat < file. 18 | 19 | Ans 4 #useradd -s /bin/sh username. -------------------------------------------------------------------------------- /Kirti Sharma/Kirti_Sharma_Assignment2.txt: -------------------------------------------------------------------------------- 1 | Q1. Create a new user and at the same time you have to add that user into the group you have already 2 | 3 | Ans: useradd -G groupname newUserName 4 | 5 | 6 | 7 | Q2. Command to unzip the bzip2 extension file 8 | 9 | Ans: bzip2 -d filename.bz2 10 | -------------------------------------------------------------------------------- /Kirti Sharma/Kirti_Sharma_Python_Ass1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Kirti Sharma/Kirti_Sharma_Python_Ass1.txt -------------------------------------------------------------------------------- /Kirti Sharma/Kirti_Sharma_Python_Ass2.txt: -------------------------------------------------------------------------------- 1 | # Ques 1: What should be the output? ( 3 + 4 ** 6 - 9 * 10 / 2 ) 2 | 3 | # Ans: 4054.0 4 | 5 | 6 | 7 | # Ques 2: Let say I have, some string "hello this side regex" 8 | # Find out the count of the total vowels 9 | # vowels - ['a','e','i','o','u'] 10 | 11 | # Ans: 12 | vowels = ['a','e','i','o','u'] 13 | a = input('Enter string : ') 14 | count = 0 15 | for i in a: 16 | if i in vowels: 17 | count += 1 18 | print('Total numbers of vowels are :',count) 19 | 20 | 21 | 22 | # Ques 3: Find out the area of triangle 23 | # - 1/2 * b * h (formula of area) 24 | # - You have to take value from user about the base, & the height 25 | 26 | # Ans: 27 | base = float(input('Enter the base : ')) 28 | height = float(input('Enter the height : ')) 29 | area = 0.5 * base * height 30 | print('Area of triangle is : ', area) 31 | 32 | 33 | 34 | # Ques 4: Print the calendar on the terminal. If you give the year. 35 | # - Allow the user to input the year. 36 | # - Then should that calendar of that year. 37 | 38 | # Ans: 39 | import calendar as C 40 | 41 | year = int(input('Enter the year : ')) 42 | 43 | print(C.calendar(year)) -------------------------------------------------------------------------------- /Linux/step 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Linux/step 2.png -------------------------------------------------------------------------------- /Manish Sharma/Linux Task 3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Manish Sharma/Linux Task 3.pdf -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/Animatin clock.py: -------------------------------------------------------------------------------- 1 | import time 2 | for i in range(5): 3 | x = str(time.ctime()) 4 | y = x.split(" ") 5 | print(y[3]) 6 | time.sleep(1) 7 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/adding value tuple.py: -------------------------------------------------------------------------------- 1 | t1=(1,2,3,4) 2 | print(type(t1)) 3 | print(t1) 4 | l1 = list(t1) 5 | l1.append(5) 6 | t1.tuple(t1) 7 | print(t1) 8 | ## convert tuple into list than append in list after that convert list into tuple. 9 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/diff r y.txt: -------------------------------------------------------------------------------- 1 | RETURN 2 | 1. It sends a specified value back to its caller. 3 | 2. Itused in Functions. 4 | YIELD 5 | 1.IT can produce a sequence of values. 6 | 2.We should use yield when we want to iterate over a sequence 7 | 3.Yield are used in Python generators. -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/Manish.txt: -------------------------------------------------------------------------------- 1 | Hello Regex--Hello Regex--Hello Regex--Hello Regex--Hello Regex-- -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/Q1.py: -------------------------------------------------------------------------------- 1 | 2 | file=open('Manish.txt','r') 3 | data=file.readlines() #list of lines 4 | print(data) 5 | file.close() 6 | file=open('Manish.txt','a') 7 | file.write("Hello Regex--") 8 | file.close() 9 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/Q2..py: -------------------------------------------------------------------------------- 1 | def file_read(fname): 2 | content_array = [] 3 | with open(fname) as f: 4 | #Content_list is the list that contains the read lines. 5 | for line in f: 6 | content_array.append(line) 7 | print(content_array) 8 | 9 | file_read('Manish.txt') 10 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/Q3.py: -------------------------------------------------------------------------------- 1 | import random 2 | def random_line(fname): 3 | lines = open(fname).read().splitlines() 4 | return random.choice(lines) 5 | print(random_line('Manish.txt')) 6 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/Q4.py: -------------------------------------------------------------------------------- 1 | with open('Sharma.txt') as fh1, open('Manish.txt') as fh2: 2 | for line1, line2 in zip(fh1, fh2): 3 | # line1 from Sharma.txt, line2 from Manish.txt 4 | print(line1+line2) 5 | 6 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/Q5.py: -------------------------------------------------------------------------------- 1 | import string, os 2 | if not os.path.exists("letters"): 3 | os.makedirs("letters") 4 | for letter in string.ascii_uppercase: 5 | with open(letter + ".txt", "w") as f: 6 | f.writelines(letter) 7 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/Q6.py: -------------------------------------------------------------------------------- 1 | import string 2 | def letters_file_line(n): 3 | with open("words1.txt", "w") as f: 4 | alphabet = string.ascii_uppercase 5 | letters = [alphabet[i:i + n] + "\n" for i in range(0, len(alphabet), n)] 6 | f.writelines(letters) 7 | letters_file_line(3) 8 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/Sharma..py: -------------------------------------------------------------------------------- 1 | file=open('Sharma.txt','w') 2 | file.close() 3 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/Sharma.txt: -------------------------------------------------------------------------------- 1 | Manish Learning good from Regex. Manish Learning good from Regex. -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/Sharmaopen.py: -------------------------------------------------------------------------------- 1 | file=open('Sharma.txt','r') 2 | data=file.readlines() #list of lines 3 | print(data) 4 | file.close() 5 | file=open('Sharma.txt','a') 6 | file.write(" Manish Learning good from Regex.") 7 | file.close() 8 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/A.txt: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/B.txt: -------------------------------------------------------------------------------- 1 | B -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/C.txt: -------------------------------------------------------------------------------- 1 | C -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/D.txt: -------------------------------------------------------------------------------- 1 | D -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/E.txt: -------------------------------------------------------------------------------- 1 | E -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/F.txt: -------------------------------------------------------------------------------- 1 | F -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/G.txt: -------------------------------------------------------------------------------- 1 | G -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/H.txt: -------------------------------------------------------------------------------- 1 | H -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/I.txt: -------------------------------------------------------------------------------- 1 | I -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/J.txt: -------------------------------------------------------------------------------- 1 | J -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/K.txt: -------------------------------------------------------------------------------- 1 | K -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/L.txt: -------------------------------------------------------------------------------- 1 | L -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/M.txt: -------------------------------------------------------------------------------- 1 | M -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/N.txt: -------------------------------------------------------------------------------- 1 | N -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/O.txt: -------------------------------------------------------------------------------- 1 | O -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/P.txt: -------------------------------------------------------------------------------- 1 | P -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/Q.txt: -------------------------------------------------------------------------------- 1 | Q -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/R.txt: -------------------------------------------------------------------------------- 1 | R -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/S.txt: -------------------------------------------------------------------------------- 1 | S -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/T.txt: -------------------------------------------------------------------------------- 1 | T -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/U.txt: -------------------------------------------------------------------------------- 1 | U -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/V.txt: -------------------------------------------------------------------------------- 1 | V -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/W.txt: -------------------------------------------------------------------------------- 1 | W -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/X.txt: -------------------------------------------------------------------------------- 1 | X -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/Y.txt: -------------------------------------------------------------------------------- 1 | Y -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/letters/Z.txt: -------------------------------------------------------------------------------- 1 | Z -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/words1.txt: -------------------------------------------------------------------------------- 1 | ABC 2 | DEF 3 | GHI 4 | JKL 5 | MNO 6 | PQR 7 | STU 8 | VWX 9 | YZ 10 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/ptthon Task 4/write.py: -------------------------------------------------------------------------------- 1 | file=open('Manish.txt','w') 2 | file.close() 3 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/py 3/Python-03.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Manish Sharma/Manish Sharma/py 3/Python-03.txt -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/py t 2/Animatin clock.py: -------------------------------------------------------------------------------- 1 | import time 2 | for i in range(5): 3 | x = str(time.ctime()) 4 | y = x.split(" ") 5 | print(y[3]) 6 | time.sleep(1) 7 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/py t 2/adding value tuple.py: -------------------------------------------------------------------------------- 1 | t1=(1,2,3,4) 2 | print(type(t1)) 3 | print(t1) 4 | l1 = list(t1) 5 | l1.append(5) 6 | t1.tuple(t1) 7 | print(t1) 8 | ## convert tuple into list than append in list after that convert list into tuple. 9 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/py t 2/diff r y.txt: -------------------------------------------------------------------------------- 1 | RETURN 2 | 1. It sends a specified value back to its caller. 3 | 2. Itused in Functions. 4 | YIELD 5 | 1.IT can produce a sequence of values. 6 | 2.We should use yield when we want to iterate over a sequence 7 | 3.Yield are used in Python generators. -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/py t 2/time.py: -------------------------------------------------------------------------------- 1 | import time 2 | for i in range(5): 3 | time.sleep(2) 4 | print("Loding."+"."*i) 5 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma/time.py: -------------------------------------------------------------------------------- 1 | import time 2 | for i in range(5): 3 | time.sleep(2) 4 | print("Loding."+"."*i) 5 | -------------------------------------------------------------------------------- /Manish Sharma/Manish Sharma_aryamanish2830_task 1and 2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Manish Sharma/Manish Sharma_aryamanish2830_task 1and 2.pdf -------------------------------------------------------------------------------- /Manish Sharma/TASK 5 python .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Manish Sharma/TASK 5 python .pdf -------------------------------------------------------------------------------- /Manish Sharma/python task 2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Manish Sharma/python task 2.pdf -------------------------------------------------------------------------------- /Manish Sharma/python task 3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Manish Sharma/python task 3.pdf -------------------------------------------------------------------------------- /Meenal/Linux- assignment 1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Meenal/Linux- assignment 1.docx -------------------------------------------------------------------------------- /Meenal/Linux- assignment 3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Meenal/Linux- assignment 3.docx -------------------------------------------------------------------------------- /Meenal/Linux-assginment 2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Meenal/Linux-assginment 2.docx -------------------------------------------------------------------------------- /Meenal/Python- assignment 1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Meenal/Python- assignment 1.docx -------------------------------------------------------------------------------- /Meghna/Assignment-1.txt: -------------------------------------------------------------------------------- 1 | Q1. When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done ? 2 | Ans-1) They are commonly used for storing user preferences or preserving the state of a utility. 3 | We can see the hidden files using following command:- 4 | a) ls-la 5 | b)we can use grep also. 6 | 7 | 8 | Q2. - Make sub directories inside a parent directory by using single mkdir command (refer figure given below). 9 | Ans-2)$ mkdir -pv dir1/dir2/dir3/dir4/dir5 10 | 11 | -------------------------------------------------------------------------------- /Meghna/assignment 3.txt: -------------------------------------------------------------------------------- 1 | Q1)Create a new user and at the same time you have to add that user into the group you have aleady created. 2 | Ans1) sudo adduser username grouptoadd 3 | 4 | Q2) How to unzip bz2 file? 5 | Ans2)tar -xf archive.tar.bz2 6 | 7 | Q3)Create archive compress ile with extension bz2 andin that add some file with data and folder. 8 | Ans3)bzip2 file1 9 | bzip2 file1 file2 file3 10 | 11 | Q4)adduser and at the same time you have to change the shell of user to bin/sh as by default shell is bin bash/ 12 | Ans 4)grep meghna /etc/passwd 13 | usermod --shell /bin/bash meghna 14 | grep meghna /etc/passwd 15 | grep meghna /etc/passwd 16 | chsh --shell /bin/sh meghna 17 | grep meghna /etc/passwd 18 | vi /etc/passwd -------------------------------------------------------------------------------- /Mehul Sharma/Python_Class_2.txt: -------------------------------------------------------------------------------- 1 | 1) 2 | a=3 + 4 ** 6 - 9 * 10 / 2 3 | print(a) 4 | 5 | >> 4054.0 6 | 7 | 2) 8 | sample_string="hello this side regex" 9 | count=0 10 | for i in a: 11 | if(i=="a" or i=="e" or i=="i" or i=="o" or i=="u"): 12 | count += 1 13 | print(count) 14 | 15 | >> 7 16 | 17 | 3) 18 | b=int(input("enter the base:")) 19 | h=int(input("enter the height:")) 20 | area = 1/2*b*h 21 | print("area",area) 22 | 23 | >> enter the base:2 24 | enter the height:5 25 | area 5.0 26 | 27 | 4) 28 | import calendar 29 | yy = int(input("Enter year: ")) 30 | mm = int(input("Enter month: ")) 31 | print(calendar. month(yy,mm)) 32 | 33 | >> Enter year: 2000 34 | Enter month: 6 35 | June 2000 36 | Mo Tu We Th Fr Sa Su 37 | 1 2 3 4 38 | 5 6 7 8 9 10 11 39 | 12 13 14 15 16 17 18 40 | 19 20 21 22 23 24 25 41 | 26 27 28 29 30 -------------------------------------------------------------------------------- /Mihika Mor/LinuxAssignment1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Mihika Mor/LinuxAssignment1.docx -------------------------------------------------------------------------------- /Mihika Mor/LinuxAssignment2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Mihika Mor/LinuxAssignment2.docx -------------------------------------------------------------------------------- /Mihika Mor/LinuxAssignment3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Mihika Mor/LinuxAssignment3.docx -------------------------------------------------------------------------------- /Mihika Mor/PythonAssignment1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Mihika Mor/PythonAssignment1.docx -------------------------------------------------------------------------------- /Mohit Arora/Mohit_Arora_Assignment10.txt: -------------------------------------------------------------------------------- 1 | Q1. Send 5 whtasapp message to 5 contacts. 2 | Ans: import requests as rq 3 | import pyautogui as g 4 | import webbrowser as wb 5 | import time as t 6 | import pyautogui as pg 7 | number=[] 8 | message=input("Enter your message: ") 9 | count=int(input("How many person you want to send message(Limit 1 to 9): ")) 10 | numberMessage=int(input("How many message you want to send: ")) 11 | for i in range(count): 12 | num=int(input("Enter Contact Number followed by 91: ")) 13 | number.append(num) 14 | for a in range(count): 15 | t.sleep(2) 16 | link="https://web.whatsapp.com/send?phone={}&text={}".format(number[a],message) 17 | wb.open(link) 18 | t.sleep(15) 19 | print("Page timeout") 20 | pg.press("enter") 21 | for x in range(numberMessage): 22 | pg.typewrite(message) 23 | pg.press("enter") 24 | t.sleep(2) 25 | pg.hotkey("ctrl","w") 26 | pg.press("enter") 27 | print("Mesage sent to {} message is {}".format(number[a],message)) 28 | print("Done") -------------------------------------------------------------------------------- /Mohit Arora/Mohit_Arora_Assignment2.txt: -------------------------------------------------------------------------------- 1 | Q1. Create a new user and at the same time you have to add that user into the group you have already 2 | Ans: useradd -G groupname newUserName 3 | 4 | Q2. Command to unzip the bzip2 extension file 5 | Ans: bzip2 -d filename.bz2 (Decompress File) 6 | bzip2 filename (Compress File) 7 | 8 | Q3 Read a file & show the data on the terminal using file input & output redirection. 9 | Ans: cat 0: 8 | value=temp%10 9 | a+=value**3 10 | temp//=10 11 | if b==a: 12 | print(b) 13 | 14 | Q.2 Remove the punctuation like ["@!#$%&*()"] from string "hello this world @2020!!!" 15 | Ans: a="hello this world @2020!!!" 16 | b="@!#$%&*()" 17 | text=a 18 | for x in b: 19 | txt=txt.replace(x,'') 20 | print(txt) 21 | 22 | Q3. You have a list with words ["Apple","banana","cat","REGEX","apple"], Sort word in Alphabetical order. 23 | Ans: a=["Apple","banana","cat","REGEX","apple"] 24 | newList=sorted(a,key=str.lower) 25 | print(newList) 26 | 27 | -------------------------------------------------------------------------------- /Mohit Arora/Mohit_Arora_Assignment9.txt: -------------------------------------------------------------------------------- 1 | Q1. You have to scrap whole table given on worldmeter site.You have to store your data in file output 2 | should be in " , " (comma seperated form) 3 | Ans: 4 | import bs4 as bs 5 | import requests 6 | totalurl="https://www.worldometers.info/coronavirus/" 7 | totalsource=requests.get(totalurl) 8 | totallink=bs.BeautifulSoup(totalsource.content,'html.parser') 9 | totalDatas=totallink.find("table", {"id":"main_table_countries_today"}) 10 | f=str(totalDatas.text.strip()).replace(",","").replace("\n",",").replace(",,","") 11 | print(f) 12 | a=open("Corona.txt",'a') 13 | a.write(f) 14 | a.close() 15 | print(r) -------------------------------------------------------------------------------- /Mohit Arora/Mohit_Arora_assignment4: -------------------------------------------------------------------------------- 1 | Q1. 3 + 4 ** 6 - 9 * 10 / 2 2 | Ans: 4054.0 3 | 4 | 5 | 6 | Q2. String "hello this side regex", Find out the count of that vowels. 7 | Ans: a="hello this side regex" 8 | b=['a','e','i','o','u'] 9 | count=0 10 | for x in a: 11 | for y in range(0,len(b)): 12 | if x in b[y]: 13 | count+=1 14 | print(count) 15 | 16 | 17 | 18 | Q3. Find out the areea of triangle- 1/2 * b * h. 19 | Ans: base=int(input("Enter the base value for Triangle:")) 20 | height=int(input("Enter the height value for Triangle:")) 21 | area=1/2*base*height 22 | print("Aera is:"+str(area)) 23 | 24 | 25 | 26 | Q4. Print the calendar on the terminal. If you give the year, 27 | -Allow the user to input the Year 28 | -Then should that calender of that year 29 | Ans: import calendar as cal 30 | y=int(input("Enter Year:")) 31 | m=int(input("Enter Month:")) 32 | print(c.month(y,m,w=3,l=0)) 33 | -------------------------------------------------------------------------------- /Mohit_Arora_Assignments/Mohit_Arora_Assignment10.txt: -------------------------------------------------------------------------------- 1 | Q1. Send 5 whtasapp message to 5 contacts. 2 | Ans: import requests as rq 3 | import pyautogui as g 4 | import webbrowser as wb 5 | import time as t 6 | import pyautogui as pg 7 | number=[] 8 | message=input("Enter your message: ") 9 | count=int(input("How many person you want to send message(Limit 1 to 9): ")) 10 | numberMessage=int(input("How many message you want to send: ")) 11 | for i in range(count): 12 | num=int(input("Enter Contact Number followed by 91: ")) 13 | number.append(num) 14 | for a in range(count): 15 | t.sleep(2) 16 | link="https://web.whatsapp.com/send?phone={}&text={}".format(number[a],message) 17 | wb.open(link) 18 | t.sleep(15) 19 | print("Page timeout") 20 | pg.press("enter") 21 | for x in range(numberMessage): 22 | pg.typewrite(message) 23 | pg.press("enter") 24 | t.sleep(2) 25 | pg.hotkey("ctrl","w") 26 | pg.press("enter") 27 | print("Mesage sent to {} message is {}".format(number[a],message)) 28 | print("Done") -------------------------------------------------------------------------------- /Mohit_Arora_Assignments/Mohit_Arora_Assignment2 .txt: -------------------------------------------------------------------------------- 1 | Q1. Create a new user and at the same time you have to add that user into the group you have already 2 | Ans: useradd -G groupname newUserName 3 | 4 | Q2. Command to unzip the bzip2 extension file 5 | Ans: bzip2 -d filename.bz2 (Decompress File) 6 | bzip2 filename (Compress File) 7 | 8 | Q3 Read a file & show the data on the terminal using file input & output redirection. 9 | Ans: cat 0: 8 | value=temp%10 9 | a+=value**3 10 | temp//=10 11 | if b==a: 12 | print(b) 13 | 14 | Q.2 Remove the punctuation like ["@!#$%&*()"] from string "hello this world @2020!!!" 15 | Ans: a="hello this world @2020!!!" 16 | b="@!#$%&*()" 17 | text=a 18 | for x in b: 19 | txt=txt.replace(x,'') 20 | print(txt) 21 | 22 | Q3. You have a list with words ["Apple","banana","cat","REGEX","apple"], Sort word in Alphabetical order. 23 | Ans: a=["Apple","banana","cat","REGEX","apple"] 24 | newList=sorted(a,key=str.lower) 25 | print(newList) 26 | 27 | -------------------------------------------------------------------------------- /Mohit_Arora_Assignments/Mohit_Arora_Assignment9.txt: -------------------------------------------------------------------------------- 1 | Q1. You have to scrap whole table given on worldmeter site.You have to store your data in file output 2 | should be in " , " (comma seperated form) 3 | Ans: 4 | import bs4 as bs 5 | import requests 6 | totalurl="https://www.worldometers.info/coronavirus/" 7 | totalsource=requests.get(totalurl) 8 | totallink=bs.BeautifulSoup(totalsource.content,'html.parser') 9 | totalDatas=totallink.find("table", {"id":"main_table_countries_today"}) 10 | f=str(totalDatas.text.strip()).replace(",","").replace("\n",",").replace(",,","") 11 | print(f) 12 | a=open("Corona.txt",'a') 13 | a.write(f) 14 | a.close() 15 | print(r) -------------------------------------------------------------------------------- /Mohit_Arora_Assignments/Mohit_Arora_assignment4.txt: -------------------------------------------------------------------------------- 1 | Q1. 3 + 4 ** 6 - 9 * 10 / 2 2 | Ans: 4054.0 3 | 4 | 5 | 6 | Q2. String "hello this side regex", Find out the count of that vowels. 7 | Ans: a="hello this side regex" 8 | b=['a','e','i','o','u'] 9 | count=0 10 | for x in a: 11 | for y in range(0,len(b)): 12 | if x in b[y]: 13 | count+=1 14 | print(count) 15 | 16 | 17 | 18 | Q3. Find out the areea of triangle- 1/2 * b * h. 19 | Ans: base=int(input("Enter the base value for Triangle:")) 20 | height=int(input("Enter the height value for Triangle:")) 21 | area=1/2*base*height 22 | print("Aera is:"+str(area)) 23 | 24 | 25 | 26 | Q4. Print the calendar on the terminal. If you give the year, 27 | -Allow the user to input the Year 28 | -Then should that calender of that year 29 | Ans: import calendar as cal 30 | y=int(input("Enter Year:")) 31 | m=int(input("Enter Month:")) 32 | print(c.month(y,m,w=3,l=0)) 33 | -------------------------------------------------------------------------------- /Mukesh Choudhary/Linux/Linux REGex Assignment 1, 2, 3_Mukesh_Choudhary.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Mukesh Choudhary/Linux/Linux REGex Assignment 1, 2, 3_Mukesh_Choudhary.docx -------------------------------------------------------------------------------- /Mukesh Choudhary/Linux/Linux REGex Assignment 1, 2, 3_Mukesh_Choudhary.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Mukesh Choudhary/Linux/Linux REGex Assignment 1, 2, 3_Mukesh_Choudhary.pdf -------------------------------------------------------------------------------- /Mukesh Choudhary/Python/Python Assignment 1 Mukesh.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Mukesh Choudhary/Python/Python Assignment 1 Mukesh.docx -------------------------------------------------------------------------------- /Mukesh Choudhary/Python/Python Assignment 1 Mukesh.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Mukesh Choudhary/Python/Python Assignment 1 Mukesh.pdf -------------------------------------------------------------------------------- /Nikhil Carpenter/6 Apr.txt: -------------------------------------------------------------------------------- 1 | Diffrence between adduser & useradd 2 | adduser :- adduser command creates user as well as set up the user's directory in home folder with account's other default settings. 3 | useradd :- useradd olny creates the user & doesnot creates user's directory automatically if not specified with -m. -------------------------------------------------------------------------------- /Nikhil Carpenter/7 Apr.txt: -------------------------------------------------------------------------------- 1 | 1) To change umask value permanently 2 | Go to /etc/profile file then change default umask value then save & exit. Now your umask value has been changed permanently you can check it on terminal. 3 | (vi /etc/profile. edit umask value in it. save & exit.) 4 | 5 | 2) Add new user without using adduser & useradd command 6 | Step 1 : add an entry for user in /etc/passwd file 7 | Step 2 : add an entry for group in /etc/group file 8 | Step 3 : create home directory for added user with mkdir command 9 | Step 4 : set new user password using passwd command 10 | 11 | 3)Can we change the umask value to 0888 ? 12 | no, we cannot change the umask value to 0888 as the maximum umask value is can be 0666 as the binaries & scripts in linux have execute permissions. 13 | 14 | 4)To add new user with unique user id & check it 15 | useradd -u 1234 abc 16 | to check uid : id -u abc 17 | 18 | 5) Change group of any folder 19 | chgrp grpname directoryname 20 | a) group of files present in the directory will not change only thr group of directory is changed 21 | b)chgrp -R grpname directoryname -------------------------------------------------------------------------------- /Nikhil Carpenter/8 Apr.txt: -------------------------------------------------------------------------------- 1 | 1)Create new user & add it into the group that you already have 2 | useradd -g grpname usrname 3 | 4 | 2)To unzip bzip2 file 5 | bzip2 -d filename.bz2 6 | 7 | 3)Archieve & compress bz2 file with some files with data & a folder 8 | tar -czvf xyz.tar.bz2 /home/ubuntu/d1/ /home/ubuntu/file1.txt /home/ubuntu/file2.txt 9 | 10 | 4)Add a user & at the same time change its shell to /bin/sh 11 | useradd -s /bin/sh usrname -------------------------------------------------------------------------------- /Nikhil Carpenter/AWS.txt: -------------------------------------------------------------------------------- 1 | 1-First, create a new instance by creating new access file, call it 'helper' instance with same region and VPC as of the lost pem file instance. 2 | 3 | 2-Now stop the lost pem file instance. Remember not to terminate instance but to stop it. 4 | 5 | 3-Go to EBS volumes, select the root volume of the lost pem file instance and detach. 6 | 7 | 4-Now again select the detached volume and this time you have to attach this volume to helper instance which we created before. 8 | Since helper instance already has a root volume by default as /dev/sda1, the newly attached volume will be secondary(eg: /dev/sdf). 9 | 10 | 5-Login to your helper instance with its pem file. 11 | 12 | 6-Execute below commands: 13 | # mount /dev/xvdf1 /mnt 14 | # cp /root/.ssh/authorized_keys /mnt/root/.ssh/ 15 | # umount /mnt 16 | 7-Detach the secondary volume from helper instance. 17 | 18 | 8-Again attach the volume back to our recovery instance. Start the instance. Terminate the helper instance. 19 | 20 | Use helper instance pem file to log into recovery instance. -------------------------------------------------------------------------------- /Nikhil Carpenter/ExcitingPythonTask01.py: -------------------------------------------------------------------------------- 1 | import matplotlib.pyplot as plt 2 | import requests 3 | from bs4 import BeautifulSoup 4 | import operator 5 | from collections import Counter 6 | 7 | wordlist = [] 8 | source_code = requests.get("http://en.wikipedia.org/wiki/").text 9 | 10 | soup = BeautifulSoup(source_code, 'html.parser') 11 | 12 | for each_text in soup.findAll('p'): 13 | content = each_text.text 14 | 15 | words = content.lower().split() 16 | 17 | for each_word in words: 18 | wordlist.append(each_word) 19 | 20 | clean_list =[] 21 | for word in wordlist: 22 | symbols = '!@#$%^&*()_-+={[}]|\;:"<>?/., ' 23 | 24 | for i in range (0, len(symbols)): 25 | word = word.replace(symbols[i], '') 26 | 27 | if len(word) > 0: 28 | clean_list.append(word) 29 | 30 | word_count = {} 31 | 32 | for word in clean_list: 33 | if word in word_count: 34 | word_count[word] += 1 35 | else: 36 | word_count[word] = 1() 37 | 38 | c = Counter(word_count) 39 | 40 | top = c.most_common(5) 41 | 42 | print(top) 43 | 44 | words, cnt = map(list, zip(*top)) 45 | 46 | plt.bar(words,cnt) 47 | plt.legend() 48 | plt.xlabel("Words", fontsize=5) 49 | plt.ylabel("Repeatations", fontsize=5) 50 | plt.xticks(cnt, words, rotation=0) 51 | plt.title("Top 5 repeated words") 52 | plt.show() 53 | -------------------------------------------------------------------------------- /Nikhil Carpenter/ExcitingPythonTask02.py: -------------------------------------------------------------------------------- 1 | import speech_recognition as s_r 2 | from textblob import TextBlob 3 | 4 | print(s_r.__version__) 5 | r = s_r.Recognizer() 6 | my_mic = s_r.Microphone(device_index=1) 7 | try: 8 | with my_mic as source: 9 | print("Say now!!!!") 10 | audio = r.listen(source) 11 | print(r.recognize_google(audio)) 12 | except: 13 | print("not getting") 14 | 15 | blob = TextBlob(r.recognize_google(audio)) 16 | 17 | if blob.sentiment.polarity < 0: 18 | print("your words seems Negative") 19 | elif blob.sentiment.polarity > 0: 20 | print("your words seems Good") 21 | else: 22 | print("your words seems Normal") -------------------------------------------------------------------------------- /Nikhil Carpenter/Nikhil Carpenter/linux_assignment_1.txt: -------------------------------------------------------------------------------- 1 | 1)LINUX allows users to have files which are not listed, by default, by the ls command. 2 | These are called hidden files and are distinguishable from other files by the fact that their filenames begin with a dot (.). 3 | Such a file is .profile which is executed every time you log in to the system. 4 | Hidden files are listed by adding the -a option to the ls command. 5 | 6 | 2)mkdir -p A/B/C 7 | 8 | 3)Cat command can be used to display the content of a file, 9 | copy content from one file to another, 10 | concatenate the contents of multiple files, display the line number. 11 | on the other hand, Tac command will display the file content in reverse order. 12 | It prints the last line first, then second last and so on. 13 | Such way, it prints the first line at last. -------------------------------------------------------------------------------- /Nikhil Carpenter/Nikhil Carpenter/linux_assignment_2.txt: -------------------------------------------------------------------------------- 1 | 1) To change umask value permanently 2 | Go to /etc/profile file then change default umask value then save & exit. Now your umask value has been changed permanently you can check it on terminal. 3 | (vi /etc/profile. edit umask value in it. save & exit.) 4 | 5 | 2) Add new user without using adduser & useradd command 6 | Step 1 : add an entry for user in /etc/passwd file 7 | Step 2 : add an entry for group in /etc/group file 8 | Step 3 : create home directory for added user with mkdir command 9 | Step 4 : set new user password using passwd command 10 | 11 | 3)Can we change the umask value to 0888 ? 12 | no, we cannot change the umask value to 0888 as the maximum umask value is can be 0666 as the binaries & scripts in linux have execute permissions. 13 | 14 | 4)To add new user with unique user id & check it 15 | useradd -u 1234 abc 16 | to check uid : id -u abc 17 | 18 | 5) Change group of any folder 19 | chgrp grpname directoryname 20 | a) group of files present in the directory will not change only thr group of directory is changed 21 | b)chgrp -R grpname directoryname -------------------------------------------------------------------------------- /Nikhil Carpenter/Nikhil Carpenter/linux_assignment_3.txt: -------------------------------------------------------------------------------- 1 | 1)bzip2 filename.txt 2 | ls 3 | filename.txt.bz2 4 | 5 | 2)To unzip bzip2 file 6 | bzip2 -d filename.bz2 7 | 8 | 3)Archieve & compress bz2 file with some files with data & a folder 9 | tar -czvf xyz.tar.bz2 /home/ubuntu/d1/ /home/ubuntu/file1.txt /home/ubuntu/file2.txt 10 | 11 | 4)Add a user & at the same time change its shell to /bin/sh 12 | useradd -s /bin/sh usrname -------------------------------------------------------------------------------- /Nikhil Carpenter/WhatsappPython.py: -------------------------------------------------------------------------------- 1 | import requests as rq 2 | import pyautogui as g 3 | import webbrowser as wb 4 | import time as t 5 | import pyautogui as pg 6 | number=[] 7 | message=input("Enter your message: ") 8 | count=int(input("How many person you want to send message(Limit 1 to 9): ")) 9 | numberMessage=int(input("How many message you want to send: ")) 10 | for i in range(count): 11 | num=int(input("Enter Contact Number followed by 91: ")) 12 | number.append(num) 13 | for a in range(count): 14 | t.sleep(2) 15 | link="https://web.whatsapp.com/send?phone={}&text={}".format(number[a],message) 16 | wb.open(link) 17 | t.sleep(15) 18 | print("Page timeout") 19 | pg.press("enter") 20 | for x in range(numberMessage): 21 | pg.typewrite(message) 22 | pg.press("enter") 23 | t.sleep(2) 24 | pg.hotkey("ctrl","w") 25 | pg.press("enter") 26 | print("Mesage sent to {} message is {}".format(number[a],message)) 27 | print("Done") 28 | -------------------------------------------------------------------------------- /Nikhil Carpenter/farms.csv: -------------------------------------------------------------------------------- 1 | farm_name,city,state 2 | GreenTokri Farms,Mandsaur,Madhya Pradesh 3 | Big India Farms,Indore,Madhya Pradesh 4 | Maharishi Orchards,Kota,Rajasthan 5 | NaturePinks Organic,Ahmedabad,Gujarat 6 | Laxmi Strawberry Farm,Udaipur,Rajasthan 7 | Jack Fruit Paradise,Bhopal,Madhya Pradesh 8 | Manveer Apple Orchards,Gwalior,Madhya Pradesh 9 | Dream Dragon Fruit Farm,Lucknow,Uttar Pradesh 10 | INI FARMS,Mumbai,Maharashtra 11 | Vidhath Custard Apple Farm,Pune,Maharashtra 12 | Fruit Mart,Raipur,Chattisgarh 13 | -------------------------------------------------------------------------------- /Nikhil Vaswani/Assignment 1.txt: -------------------------------------------------------------------------------- 1 | 1. Change the umask value for any user permanently. 2 | => run command vim /etc/bashrc 3 | => change umask value there 4 | 5 | 6 | 2. add a new user without using adduser & useradd commmand. 7 | => When we add a user using useraddd command it is created in locked state, thats why it is not visible in home directory . To unlock it we need to set a password for that user. 8 | => useradd nikhil 9 | => passwd nikhil 10 | 11 | 12 | 13 | 14 | 3. Can we change umask value to 0888? 15 | => No, we can't because the max possible umask value is 0777. 16 | 17 | 18 | 19 | 4. How to add a new user with a unique user id & check out the unique id of that user. 20 | => just add a new user using adduser, it will automatically assign a unique userid 21 | => to check userid , just run command vim /etc/passwd, and search for your user 22 | 23 | 24 | 25 | 26 | 5. How to change the group of any folder. 27 | => chgrp new_grp_name folder_name 28 | 29 | 5.a => ls --l command , the group of files are same as that of folder\ 30 | 31 | 5.b => sudo chgrp -R group_name folder_name 32 | 33 | 34 | 35 | 6. Make subdirectories in a single command. 36 | => mkdir new_dir 37 | => cd new_dir 38 | => mkdir -p new_dir/{sub_dir1, sub_dir2, sub_dir2} -------------------------------------------------------------------------------- /Nikhil Vaswani/Assignment Django1.txt: -------------------------------------------------------------------------------- 1 | import requests 2 | from bs4 import BeautifulSoup 3 | from collections import Counter 4 | from matplotlib import pyplot as plt 5 | 6 | url = "https://www.cricbuzz.com/cricket-news/112912/the-cheatsheet" 7 | page = requests.get(url) 8 | soup = BeautifulSoup(page.content,'html.parser') 9 | 10 | all_text = soup.findAll("section",{"class":"cb-nws-dtlitms"}) 11 | list1 = [] 12 | 13 | for each_text in all_text: 14 | each_content = each_text.text 15 | words = each_text.text 16 | for word in words: 17 | list1.append(word) 18 | 19 | count = {} 20 | 21 | for word in list1: 22 | if word in count: 23 | count[word] += 1 24 | else: 25 | count[word] = 1 26 | 27 | print("\n") 28 | 29 | c = Counter(count) 30 | 31 | top_word = c.most_common(5) 32 | aa = dict(top_word) 33 | print(aa) 34 | 35 | value = list(aa.keys()) 36 | num = list(aa.values()) 37 | 38 | 39 | plt.xlabel("Top Five Words") 40 | plt.ylabel("Occurance of the word") 41 | 42 | 43 | plt.plot(value,num) 44 | plt.show() -------------------------------------------------------------------------------- /Nikhil Vaswani/Assignment Linux 1.txt: -------------------------------------------------------------------------------- 1 | 1. Change the umask value for any user permanently. 2 | => run command vim /etc/bashrc 3 | => change umask value there 4 | 5 | 6 | 2. add a new user without using adduser & useradd commmand. 7 | => When we add a user using useraddd command it is created in locked state, thats why it is not visible in home directory . To unlock it we need to set a password for that user. 8 | => useradd nikhil 9 | => passwd nikhil 10 | 11 | 12 | 13 | 14 | 3. Can we change umask value to 0888? 15 | => No, we can't because the max possible umask value is 0777. 16 | 17 | 18 | 19 | 4. How to add a new user with a unique user id & check out the unique id of that user. 20 | => just add a new user using adduser, it will automatically assign a unique userid 21 | => to check userid , just run command vim /etc/passwd, and search for your user 22 | 23 | 24 | 25 | 26 | 5. How to change the group of any folder. 27 | => chgrp new_grp_name folder_name 28 | 29 | 5.a => ls --l command , the group of files are same as that of folder\ 30 | 31 | 5.b => sudo chgrp -R group_name folder_name 32 | 33 | 34 | 35 | 6. Make subdirectories in a single command. 36 | => mkdir new_dir 37 | => cd new_dir 38 | => mkdir -p new_dir/{sub_dir1, sub_dir2, sub_dir2} -------------------------------------------------------------------------------- /Nikhil Vaswani/Assignment Linux 2.txt: -------------------------------------------------------------------------------- 1 | 1. Create & compress the file with bzip2. 2 | => touch file1 3 | bzip2 file1 4 | 5 | 6 | 7 | 2. What should be the argument to be given to unzip that file. 8 | => bzip2 -d file1 9 | 10 | 11 | 12 | 13 | 3. Read a file & show the data on terminal using file input & output redirection 14 | => sort < file_list.txt > sorted_file_list.txt 15 | 16 | 17 | 18 | 19 | 4. How to change the shell of user to “/bin/sh” at the time of adding the user 20 | => useradd -s /bin/bash testuser -------------------------------------------------------------------------------- /Nikhil Vaswani/Assignment Python 1.txt: -------------------------------------------------------------------------------- 1 | 1. What is JPython & CPython? 2 | => Jython is an implementation of the Python programming language designed to run on the Java platform. 3 | CPython is the reference implementation of the Python programming language. Written in C and Python, 4 | CPython is the default and most widely used implementation of the language. 5 | 6 | 7 | 8 | 9 | 2. Basic difference between Python2 & python3 10 | => In Python 3, default storing of strings is Unicode. 11 | In Python2, to store Unicode string value, you require to define them with "u". 12 | 13 | 14 | 15 | 16 | 3. Difference between ASCII & unicode 17 | => ASCII defines 128 characters, which map to the numbers 0–127. Unicode defines (less than) 221characters, 18 | which, similarly, map to numbers 0–221 (though not all numbers are currently assigned, and some are reserved). 19 | 20 | -------------------------------------------------------------------------------- /Nikhil Vaswani/Assignment Python 2.txt: -------------------------------------------------------------------------------- 1 | 1. What should be the output? ( 3 + 4 ** 6 - 9 * 10 / 2 ) 2 | => 4054.0 3 | 4 | 5 | 6 | 2. Let say I have, some string "hello this side regex". Find out the count of the total vowels. 7 | => vowels='aeiou' 8 | count = 0 9 | string="hello this side regex" 10 | for s in string: 11 | if s in vowels: 12 | count += 1 13 | print(count) 14 | 15 | 16 | 17 | 3. Find out the area of triangle. 18 | => h = int(input("Enter height: ") 19 | b = int(input("Enter base: ") 20 | area = 1/2 * b * h 21 | print(area) 22 | 23 | 24 | 4. Print the calendar on the terminal. 25 | => year = int(input("Enter the year: ")) 26 | import calendar 27 | print(calendar.calendar(year)) -------------------------------------------------------------------------------- /Nikhil Vaswani/Assignment Python 3.txt: -------------------------------------------------------------------------------- 1 | 1. Find the Armstrong Number between the two numbers which are input by user 2 | => Armstrong number : 153 -> 1*1*1 + 5*5*5 + 3*3*3 3 | => x, y = input("Enter a two value: ").split() 4 | x=int(x) 5 | y= int(y) 6 | for num in range(x,y,1) : 7 | sum = 0 8 | temp = num 9 | while temp > 0: 10 | digit = temp % 10 11 | sum += digit ** 3 12 | temp //= 10 13 | if num == sum: 14 | print(num,"is an Armstrong number") 15 | 16 | 17 | 18 | 2. Let’s say you have a string “hello this world @2020!!! ” 19 | => Remove the punctuation like [“@!#$%&*()”] from the string 20 | => Final output should be without the punctuation 21 | => “hello this world 2020” 22 | 23 | s='hello this world @2020!!! ' 24 | s=list(s) 25 | p=['@','!','#','$','%','&','*','(',')'] 26 | a=[] 27 | for i in s: 28 | if i in p: 29 | continue 30 | else: 31 | a.append(i) 32 | ''.join(str(i) for i in a) 33 | 34 | 35 | 36 | 37 | 38 | 3. You have a list with words - [“Apple”, “banana”, “cat”, “REGEX”,”apple”] 39 | => Sort words in Alphabetical order 40 | => If you get output, like [Apple, apple, banana] 41 | => How has it happened? 42 | 43 | o =['Apple', 'banana', 'cat', 'REGEX','apple'] 44 | o.sort() -------------------------------------------------------------------------------- /Nikhil Vaswani/Assignment Python 5.txt: -------------------------------------------------------------------------------- 1 | 1.Print Loading... 2 | => from time import sleep 3 | s="Loading" 4 | d="." 5 | print(s,end="") 6 | for i in range(1,4): 7 | print(d,end="") 8 | sleep(1) 9 | 10 | 11 | 12 | 2. Difference bw yield and return. 13 | => Return send a specific value back to its caller. 14 | => Yield can produce a seq. of values. 15 | 16 | 17 | 18 | 19 | 3. Make a clock and run for 5 sec. 20 | => import time 21 | for i in range(5): 22 | print(time.ctime().split(" ")[3]) 23 | time.sleep(1) 24 | 25 | 26 | 27 | 4. Add anything to a tuple. 28 | => t1=(1,2,3) 29 | t2=(4,5) 30 | t3=t1+t2 31 | print(t3) 32 | 33 | 34 | 35 | 5. Whatsapp texting using webbrowser module. 36 | => 37 | import webbrowser as wb 38 | from time import sleep 39 | from pyautogui import click 40 | wb.open("https://web.whatsapp.com/send?phone=917976368213&text=hi") 41 | sleep(10) 42 | click(1790,970,button='left') 43 | sleep(5) 44 | click(1890,30) -------------------------------------------------------------------------------- /Nikhil Vaswani/Assignment Python 7.txt: -------------------------------------------------------------------------------- 1 | 1. Send a messsage in whatsapp to a person. 2 | => 3 | import webbrowser as wb 4 | from time import sleep 5 | from pyautogui import click 6 | wb.open("https://web.whatsapp.com/send?phone=917976368213&text=hi") 7 | sleep(10) 8 | click(1790,970,button='left') 9 | 10 | 11 | 12 | 13 | 14 | 2. Send a same message to 6 different persons. 15 | => 16 | import webbrowser as wb 17 | from time import sleep 18 | from pyautogui import click 19 | numbers = {917976368213 , 919413426213 , 919414686313 , 917976352313 , 919828582261} 20 | for i in numbers: 21 | wb.open("https://web.whatsapp.com/send?phone={}&text=hi".format(i)) 22 | sleep(10) 23 | click(1790,970,button='left') 24 | sleep(5) 25 | click(1890,30) 26 | 27 | 28 | 29 | 30 | 31 | 3. Send a msg to a person 5 times. 32 | => 33 | import webbrowser as wb 34 | from time import sleep 35 | from pyautogui import click 36 | for i in range(5): 37 | wb.open("https://web.whatsapp.com/send?phone=917976368213&text=hi") 38 | sleep(10) 39 | click(1790,970,button='left') 40 | sleep(5) 41 | click(1890,30) 42 | -------------------------------------------------------------------------------- /Nikhil Vaswani/Assignment_Django1.py: -------------------------------------------------------------------------------- 1 | import requests 2 | from bs4 import BeautifulSoup 3 | from collections import Counter 4 | from matplotlib import pyplot as plt 5 | 6 | url = "https://www.cricbuzz.com/cricket-news/112912/the-cheatsheet" 7 | page = requests.get(url) 8 | soup = BeautifulSoup(page.content,'html.parser') 9 | 10 | all_text = soup.findAll("section",{"class":"cb-nws-dtlitms"}) 11 | list1 = [] 12 | 13 | for each_text in all_text: 14 | each_content = each_text.text 15 | words = each_text.text 16 | for word in words: 17 | list1.append(word) 18 | 19 | count = {} 20 | 21 | for word in list1: 22 | if word in count: 23 | count[word] += 1 24 | else: 25 | count[word] = 1 26 | 27 | print("\n") 28 | 29 | c = Counter(count) 30 | 31 | top_word = c.most_common(5) 32 | aa = dict(top_word) 33 | print(aa) 34 | 35 | value = list(aa.keys()) 36 | num = list(aa.values()) 37 | 38 | 39 | plt.xlabel("Top Five Words") 40 | plt.ylabel("Occurance of the word") 41 | 42 | 43 | plt.plot(value,num) 44 | plt.show() 45 | -------------------------------------------------------------------------------- /Nikita/10 Apr.txt: -------------------------------------------------------------------------------- 1 | 1) What is jpython & cpython ? 2 | cpython is written in c language. It compiles the python source code into intermediate bytecode whuch is executed by cpython virtual machine. 3 | jpython can run on java platform. It uses java classes instead of python modules. 4 | 5 | 2) Difference between python2 & python3 6 | In python2 print statement doesnot need parenthesis but in python3 print is a function & values need to be written in parenthesis. 7 | python2 uses <> for notequal & python3 use != for notequal. 8 | python2 has raw_input() that reads string & input() evaluates data read but in python3 raw_input() is not available & input() reads string. 9 | in python3 .format() function is used instead of %. 10 | 11 | 3) Diffrence between ASCII & Unicode 12 | ASCII uses 8-bit encoding while unicode uses variable bit encoding like 8,16,32. 13 | unicode has a much wide range of characters compared to ascii which has only 128 characters. 14 | ascii requires less space unicode requires more space. 15 | 16 | -------------------------------------------------------------------------------- /Nikita/6 Apr.txt: -------------------------------------------------------------------------------- 1 | Diffrence between adduser & useradd 2 | adduser :- adduser command creates user as well as set up the user's directory in home folder with account's other default settings. 3 | useradd :- useradd olny creates the user & doesnot creates user's directory automatically if not specified with -m. -------------------------------------------------------------------------------- /Nikita/7 Apr.txt: -------------------------------------------------------------------------------- 1 | 1) To change umask value permanently 2 | Go to /etc/profile file then change default umask value then save & exit. Now your umask value has been changed permanently you can check it on terminal. 3 | (vi /etc/profile. edit umask value in it. save & exit.) 4 | 5 | 2) Add new user without using adduser & useradd command 6 | Step 1 : add an entry for user in /etc/passwd file 7 | Step 2 : add an entry for group in /etc/group file 8 | Step 3 : create home directory for added user with mkdir command 9 | Step 4 : set new user password using passwd command 10 | 11 | 3)Can we change the umask value to 0888 ? 12 | no, we cannot change the umask value to 0888 as the maximum umask value is can be 0666 as the binaries & scripts in linux have execute permissions. 13 | 14 | 4)To add new user with unique user id & check it 15 | useradd -u 1234 abc 16 | to check uid : id -u abc 17 | 18 | 5) Change group of any folder 19 | chgrp grpname directoryname 20 | a) group of files present in the directory will not change only thr group of directory is changed 21 | b)chgrp -R grpname directoryname -------------------------------------------------------------------------------- /Nikita/8 Apr.txt: -------------------------------------------------------------------------------- 1 | 1)Create new user & add it into the group that you already have 2 | useradd -g grpname usrname 3 | 4 | 2)To unzip bzip2 file 5 | bzip2 -d filename.bz2 6 | 7 | 3)Archieve & compress bz2 file with some files with data & a folder 8 | tar -czvf xyz.tar.bz2 /home/ubuntu/d1/ /home/ubuntu/file1.txt /home/ubuntu/file2.txt 9 | 10 | 4)Add a user & at the same time change its shell to /bin/sh 11 | useradd -s /bin/sh usrname -------------------------------------------------------------------------------- /Nikita/farm_data.csv: -------------------------------------------------------------------------------- 1 | Farm_Name,Location 2 | Royal Emu Farm & Hatcheries,"Vadodara,Gujarat" 3 | Vasupujya Dragon Fruit Farm,"Kharua,Gujarat" 4 | SINGHVIS FARM,"Mithi Rohar,Gujarat" 5 | GreenTokri Farms,"Pune,Maharashtra" 6 | Gujarat Dragon Fruit Farm,"Kalavad,Gujarat" 7 | Maharishi orchards,"New Delhi,Delhi" 8 | Manveer Apple Orchards,"New Delhi,Delhi" 9 | ARMO Pomegranate Farm,"Nagpur,Maharashtra" 10 | Hamsah Organic Farm,"Bengaluru,Karnataka" 11 | Blue Jamoon Farm,"Bengaluru,Karnataka" 12 | Prakash Strawberry Farm,"Ooty,Tamil Nadu" 13 | -------------------------------------------------------------------------------- /Nishtha Grover/Linux_Assign_1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nishtha Grover/Linux_Assign_1.docx -------------------------------------------------------------------------------- /Nishtha Grover/Linux_Assign_2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nishtha Grover/Linux_Assign_2.docx -------------------------------------------------------------------------------- /Nishtha Grover/Linux_Assign_3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nishtha Grover/Linux_Assign_3.docx -------------------------------------------------------------------------------- /Nishtha Grover/Nishth_Linux_Assign_3: -------------------------------------------------------------------------------- 1 | ASSIGNMENT – 2 2 | Q1. Create new user and at the same time you have to add the user into group 3 | We can do this by using the following command: 4 | useradd -G groupname username 5 | 6 | Q2. How to unzip the bz2 file? 7 | We can do this by using the following command: 8 | bzip2 -d filename.bz2 9 | -d = decompress 10 | 11 | Q3. Create archive + compressed file with extension bz2 and in that include some file with data & folder 12 | We can do this by using the following command: 13 | tar -cfvj archive.tar.bz2 data_file_1 dat_file_2 14 | 15 | Q4. Add user and at the same time change the shell of the user to /bin/sh 16 | We can do this by using the following command: 17 | useradd -s /bin/sh username 18 | 19 | 20 | -------------------------------------------------------------------------------- /Nishtha Grover/Python_assign_1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nishtha Grover/Python_assign_1.docx -------------------------------------------------------------------------------- /Nishtha Grover/Python_assign_2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nishtha Grover/Python_assign_2.docx -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_aws_1.txt: -------------------------------------------------------------------------------- 1 | AWS Assignment 1 2 | 3 | 1) How to access an instance if PEM file is lost? 4 | Sol: 5 | An ec2 instance can be accessed using another instance in same region and VPC by following steps: 6 | 1. First, create a new instance by creating new access file, call it 'helper' instance with same region and VPC as of the lost pem file instance. 7 | 2. Now stop the lost pem file instance. Remember not to terminate instance but to stop it. 8 | 3. Go to EBS volumes, select the root volume of the lost pem file instance and detach. 9 | 4. Now again select the detached volume and this time you have to attach this volume to helper instance which we created before. Since helper instance already has a root volume by default as /dev/sda1, the newly attached volume will be secondary (eg: /dev/sdf). 10 | 5. Login to your helper instance with its pem file. 11 | 6. Execute below commands: 12 | a. # mount /dev/xvdf1 /mnt 13 | b. # cp /root/.ssh/authorized_keys /mnt/root/.ssh/ 14 | c. # umount /mnt 15 | 7. Detach the secondary volume from helper instance. 16 | 8. Again, attach the volume back to our recovery instance. Start the instance. Terminate the helper instance. 17 | 18 | -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_dataScience_1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nitasha Gupta/assignment_dataScience_1.docx -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_datascience_2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nitasha Gupta/assignment_datascience_2.docx -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_datascience_3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nitasha Gupta/assignment_datascience_3.docx -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_lecture_3.txt: -------------------------------------------------------------------------------- 1 | 1. When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done? 2 | Sol. The /etc/skel directory contains files and directories that are automatically copied over to a new user's home directory when such user is created by the useradd 3 | program. 4 | Several user configuration files are placed in /etc/skel by default when the operating system is installed. Typically they might include .bash_profile, .bashrc, 5 | .bash_logout, dircolors, .inputrc and .vimrc. 6 | The Home Directory has the following hidden files: 7 | ->System Settings: 8 | ->Configuration files 9 | ->User Profiles 10 | ->Desktop Environment Settings 11 | ->Application Configuration Profiles: 12 | ->Configuration files for applications 13 | ->Web browser data 14 | ->Caches 15 | ->Logs 16 | 17 | 2. Make sub directories inside a parent directory by using single mkdir command: 18 | Sol. mkdir -p A/B/C 19 | 20 | 3. Why user folder is not created in by using useradd command? 21 | Sol. When a user is created using useradd command, no shell is allocated to that user, so for the folder of the user to be created, one need to first create user 22 | using useradd and the after assigning a password by in the /etc/passwd file. 23 | -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_lecture_5.txt: -------------------------------------------------------------------------------- 1 | 1. Create new user and at the same time you have to add the user into group 2 | Sol. By command: useradd -G groupname username 3 | 4 | 2. How to unzip the bz2 file? 5 | Sol. By command : bzip2 -d filename.bz2 (-d option is for decompressing) 6 | 7 | 3. Create archive+compressed file with extension bz2 and in that include some file with data&folder 8 | Sol. By command: tar -cfvj archive.tar.bz2 file1 file2 9 | 10 | 4. Add user and at the same time change the shell of the user to /bin/sh 11 | Sol. By command: useradd -s /bin/sh username 12 | 13 | -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_linux_6.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nitasha Gupta/assignment_linux_6.txt -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_python_1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nitasha Gupta/assignment_python_1.txt -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_python_3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nitasha Gupta/assignment_python_3.docx -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_python_4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nitasha Gupta/assignment_python_4.docx -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_python_5.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nitasha Gupta/assignment_python_5.docx -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_python_6.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nitasha Gupta/assignment_python_6.docx -------------------------------------------------------------------------------- /Nitasha Gupta/assignment_python_7.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nitasha Gupta/assignment_python_7.docx -------------------------------------------------------------------------------- /Nitasha Gupta/late_night_task_python.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nitasha Gupta/late_night_task_python.txt -------------------------------------------------------------------------------- /Nitasha Gupta/~$signment_datascience_3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Nitasha Gupta/~$signment_datascience_3.docx -------------------------------------------------------------------------------- /Nooruddin Nagdi/Counting vowels.py: -------------------------------------------------------------------------------- 1 | #counting vowels 2 | string= input("Enter the string:") 3 | vowels=0 4 | for i in string: 5 | if(i=='a' or i=='e' or i=='i' or i=='o' or i=='u' or i=='A' or i=='E' or i=='I' or i=='O' or i=='U'): 6 | vowels=vowels+1 7 | print("Number of vowels are:") 8 | print(vowels) 9 | -------------------------------------------------------------------------------- /Nooruddin Nagdi/area of triangle.py: -------------------------------------------------------------------------------- 1 | #printing Area of triangle 2 | b=int(input("Enter base of triangle")) 3 | h=int(input("Enter height of triangle")) 4 | a=0.5*b*h 5 | print("Ara\ea of triangle is:",a) 6 | 7 | -------------------------------------------------------------------------------- /PARTH/REGEX ASSIGNMENT.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/PARTH/REGEX ASSIGNMENT.pdf -------------------------------------------------------------------------------- /PARTH/REGEX ONLINE TRAINING PYTHON ASSIGNMENTS.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/PARTH/REGEX ONLINE TRAINING PYTHON ASSIGNMENTS.docx -------------------------------------------------------------------------------- /PUSAPATI SWETHA/assignment1- 07.04.2020.txt: -------------------------------------------------------------------------------- 1 | Q1 how to change umask value permanently 2 | write a new umask value in the shell configuration file(~/.bashrc for Bash) or in the /etc/profile file 3 | 4 | Q2 how to add new user without adduser or useradd 5 | add the user in /etc/passwd file then add a group with the same name in /etc/group and then set passwd with passwd command 6 | 7 | Q3 can umask value be changed to 0888 8 | it can not be changed to 0888 because the maximum value of a umask itself is 0777(r=4, w=2, x=1; 4+2+1=7) 9 | 10 | 11 | Q4 how to add new user with unique id & how to check that unique id 12 | useradd -u 1345 username //creates a new user with our desired Unique id (given here 1345) 13 | cat /etc/passwd | grep username // prints the userd ID on the terminal 14 | 15 | Q5 (a) how to change group of any folder 16 | chgrp [options] group filename 17 | 18 | (b)group name of files present in the folder 19 | ls -ld -------------------------------------------------------------------------------- /PUSAPATI SWETHA/assignment2- 08.04.2020.txt: -------------------------------------------------------------------------------- 1 | Q) how to unzip a bz2 file 2 | first type tar xzff filename.tar.bz2 which uncompresses a bzip2 tar file 3 | 4 | Q) how to add a user and at the same time we must chnage shell of the user 5 | useradd -s /bin/bash/bin/rbash -------------------------------------------------------------------------------- /PUSAPATI SWETHA/assignment3- 10.04.2020.txt: -------------------------------------------------------------------------------- 1 | Q) difference between ascii and unicode 2 | ASCII uses 7 bits to encode each character whereas unicode uses a variable bit encoding program where we can choose between 8,16, 32 bit encodings 3 | 4 | Q) what are the python complilers 5 | 1. CPython 2.JPython 3.IronPython 4. ActivePython 5.PyJS 6. Nutika 7.Stackless Python -------------------------------------------------------------------------------- /PUSAPATI SWETHA/assignment4- 11.04.2020.txt: -------------------------------------------------------------------------------- 1 | Q) output of 3+4**6-9*10/2 2 | 4054 ( 1. 4**6=4096 2. 10/2=5 3. 9*5=45 4. 3+4096=4099 5. 4099-45=4054) 3 | Q)string given is "hello this side is regex" count the number of vowels 4 | str = "hello this side regex" 5 | str1 = str.lower() 6 | vow=0 7 | for i in str1: 8 | if(i=='a'or i=='e' or i=='o' or i=='i' or i=='u') 9 | vow=vow+1 10 | print("number of vowels are ") 11 | print (vow) 12 | 13 | Q) calculate area of triangle 14 | print("enter the base of triangle") 15 | b = int(input()) 16 | print("enter the height of triangle") 17 | h = int(input()) 18 | area = 0.5*b*h 19 | print("area is ") 20 | print (area) 21 | 22 | Q) print calendar of the year given a input 23 | import calendar 24 | print("enter year and then the month") 25 | y = int(input()) 26 | m = int(input()) 27 | print(calendar.month(y,m)) 28 | -------------------------------------------------------------------------------- /PUSAPATI SWETHA/assignment5- 12.04.2020.txt: -------------------------------------------------------------------------------- 1 | Q) armstrong number in a range 2 | 3 | l = int(input("enter the lower range:")) 4 | u = int(input("enter the upper range:")) 5 | for num in range(lower,upper+1): 6 | sum=0 7 | i=num 8 | while i >0 : 9 | d = 1%10 10 | sum+=d**3 11 | i/=10 12 | if num == sum 13 | print(num) 14 | 15 | Q) to remove special characters in a given string 16 | str1 = (input("enter the string:")) 17 | str2 = " " 18 | for i in str1: 19 | if i.isalnum() 20 | str2 += i 21 | print(str2) 22 | 23 | Q) to sort the given list and explain the output 24 | ls1 = ["apple", "banana", "cat", "REGEX", "Apple"] 25 | ls1.sort() 26 | print("sorted list") 27 | print(ls1) 28 | 29 | output: ["Apple", "REGEX", "apple", "banana", "cat"] 30 | Explanation: A has the ASCII value of 65 which is the least hence appears first in the sorted output. 31 | We then get REGEX in the output instead of apple because R has the AScCII value 82 whereas a, b, c have ASCII values 97, 98, 99 respectively. 32 | The sort() sorts in ascending order of the ASCII values. -------------------------------------------------------------------------------- /PUSAPATI SWETHA/assignment7- 14.04.2020.txt: -------------------------------------------------------------------------------- 1 | Q)Output Should be : 2 | Loading. 3 | Loading.. 4 | Loading... 5 | Loading.... 6 | Loading..... 7 | Here it shows you 5 output but you have to print only "Loading....." in animated 8 | form. 9 | 10 | import time 11 | i = 0 12 | for i in range(5) 13 | time.sleep(2) 14 | print("loading..") 15 | 16 | Q) Difference between Return and Yield ? 17 | 18 | return: * it sends a specified value back to its caller 19 | * causes a function to exit 20 | * terminates the execution of a function & destroys local variables 21 | 22 | yield: * used to define generators 23 | * replaces the return value of a function to suspend its execution without 24 | destroying the local variables 25 | * used when the generator returns an intermediate result to caller 26 | 27 | Q)Add anything in tuple.. example: (1,2,3,4) -> new tuple (1,2,3,4,5) 28 | 29 | x = (1,2,3,4) 30 | y = list(x) 31 | y[4] = 5 32 | x = tuple(y) 33 | print(x) 34 | 35 | Q)WhatsApp texting using webbrowser Lib. 36 | 37 | import webbrowser 38 | webbrowser.open_new_tab("https://web.whatsapp.com/") 39 | 40 | Q)Make digital Clock and run it for 5 sec. 41 | Output: 42 | 16:39:08 43 | :09 44 | :10 45 | :11 46 | :12 47 | 48 | import time 49 | 50 | for i in range(5) 51 | a = str(time.ctime()) 52 | b = a.split(" ") 53 | print(b[3]) 54 | time.sleep(1) -------------------------------------------------------------------------------- /Piyush singh/Linux-01.txt: -------------------------------------------------------------------------------- 1 | Linux Assignment-01 2 | Answers 3 | 4 | 5 | 1) When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done ? 6 | Ans.It is done because these files are in the folder /etc/skel and whichever files we place in this folder those files will be 7 | made available in the home directory of all the users which we create afterwards. 8 | For reference following are some commands to create a file in /etc/skel and creating and listing files in /home/user 9 | files 10 | -> cd /etc/root 11 | -> touch TestFile 12 | -> useradd RedhatUser 13 | -> ls /home/RedhatUser 14 | Now you'll find the TestFile document in this folder which is the proof that whichever files we put in the folder 15 | /etc/skel will be available to all the users created after it. 16 | 17 | 18 | 2)Make sub directories inside a parent directory by using single mkdir command. 19 | Ans. mkdir -p A/B/C (-p for parent directoy option). -------------------------------------------------------------------------------- /Piyush singh/Linux-03.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Piyush singh/Linux-03.txt -------------------------------------------------------------------------------- /Piyush singh/Python-01.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Piyush singh/Python-01.txt -------------------------------------------------------------------------------- /Piyush singh/Python-03.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Piyush singh/Python-03.txt -------------------------------------------------------------------------------- /Piyush singh/linux-02.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Piyush singh/linux-02.txt -------------------------------------------------------------------------------- /Pramit Vishwakarma/Linux-01.txt: -------------------------------------------------------------------------------- 1 | Linux Assignment-01 2 | Answers 3 | 4 | 5 | 1) When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done ? 6 | Ans.It is done because these files are in the folder /etc/skel and whichever files we place in this folder those files will be 7 | made available in the home directory of all the users which we create afterwards. 8 | For reference following are some commands to create a file in /etc/skel and creating and listing files in /home/user 9 | files 10 | -> cd /etc/root 11 | -> touch TestFile 12 | -> useradd RedhatUser 13 | -> ls /home/RedhatUser 14 | Now you'll find the TestFile document in this folder which is the proof that whichever files we put in the folder 15 | /etc/skel will be available to all the users created after it. 16 | 17 | 18 | 2)Make sub directories inside a parent directory by using single mkdir command. 19 | Ans. mkdir -p A/B/C (-p for parent directoy option). -------------------------------------------------------------------------------- /Pramit Vishwakarma/Linux-03.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Pramit Vishwakarma/Linux-03.txt -------------------------------------------------------------------------------- /Pramit Vishwakarma/Python-01.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Pramit Vishwakarma/Python-01.txt -------------------------------------------------------------------------------- /Pramit Vishwakarma/Python-03.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Pramit Vishwakarma/Python-03.txt -------------------------------------------------------------------------------- /Pramit Vishwakarma/linux-02.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Pramit Vishwakarma/linux-02.txt -------------------------------------------------------------------------------- /Python Assignment 2/Assignment 1.txt: -------------------------------------------------------------------------------- 1 | Ques 1: Find the Armstrong number between the two numbers which are input by user 2 | Armstrong numbers: 153-> 1*1*1 + 5*5*5 + 3*3*3 3 | Ans 1: x, y = input("Enter two values value: ").split() 4 | x=int(x) 5 | y= int(y) 6 | for num in range(x,y,1) : 7 | sum = 0 8 | temp = num 9 | while temp > 0: 10 | digit = temp % 10 11 | sum += digit ** 3 12 | temp //= 10 13 | if num == sum: 14 | print(num,"is an Armstrong number") 15 | 16 | Ques 2: Let’s say you have a string “hello this world @2020!!! ” 17 | $ Remove the punctuation like [“@!#$%&*()”] from the string. 18 | $ Final output should be without the punctuation “hello this world 2020”. 19 | Ans 2: s='hello this world @2020!!! ' 20 | s=list(s) 21 | punc=['@','!','#','$','%','&','*','(',')'] 22 | a=[] 23 | for i in s: 24 | if i in punc: 25 | continue 26 | else: 27 | a.append(i)''.join(str(i) for i in a) 28 | 29 | Ques 3: You have a list with words - [“Apple”, “banana”, “cat”, “REGEX”,”apple”] 30 | $ Sort words in Alphabetical order 31 | $ If you get output, like [Apple, apple, banana].How has it happened? 32 | Ans 3: li =['Apple', 'banana', 'cat', 'REGEX','apple'] 33 | li.sort(key=str.casefold) 34 | li[0:3] -------------------------------------------------------------------------------- /Python Assignment 2/Assignment 5.txt: -------------------------------------------------------------------------------- 1 | Ques: Construct a World Meter Corona Cases table. 2 | Ans: import requests 3 | from bs4 import BeautifulSoup 4 | url = "https://www.worldometers.info/coronavirus/" 5 | page = requests.get(url) 6 | soup = BeautifulSoup(page.content,'html.parser') 7 | data=soup.find("table", {"id":"main_table_countries_today"}) 8 | a=str(data.text.strip()).replace(","," ") 9 | a=a.replace("\n",",").replace(",,"," ") 10 | print(a) 11 | f=open("world_data.txt",'a') 12 | f.write(a) 13 | f.close() -------------------------------------------------------------------------------- /REGex Training/1st.py: -------------------------------------------------------------------------------- 1 | print("hello world") 2 | -------------------------------------------------------------------------------- /REGex Training/hello: -------------------------------------------------------------------------------- 1 | REGex Software 2 | -------------------------------------------------------------------------------- /REGex Training/python class 2&3 assignmeht nikunj mehta.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/REGex Training/python class 2&3 assignmeht nikunj mehta.zip -------------------------------------------------------------------------------- /Rakhi Pareek/Python Task 3/Ass 1.py: -------------------------------------------------------------------------------- 1 | # Question 1 2 | ''' 3 | Find the Armstrong Number between the two numbers which are input by user 4 | ○ Armstrong number : 153 -> 1*1*1 + 5*5*5 + 3*3*3 5 | ''' 6 | 7 | number1 = int(input("Enter the starting number")) 8 | number2 = int(input("Enter the ending number")) 9 | 10 | for i in range(number1, number2 + 1): 11 | sum = 0 12 | temp = i 13 | while temp > 0: 14 | digit = temp % 10 15 | sum = sum + digit ** 3 16 | temp = temp // 10 17 | 18 | if i == sum: 19 | print (i) 20 | 21 | 22 | -------------------------------------------------------------------------------- /Rakhi Pareek/Python Task 3/Ass 2.py: -------------------------------------------------------------------------------- 1 | # Question 2 2 | ''' 3 | Let’s say you have a string “hello this world @2020!!! ” 4 | ○ Remove the punctuation like [“@!#$%&*()”] from the string 5 | ■ Final output should be without the punctuation 6 | ● “hello this world 2020” 7 | ''' 8 | 9 | s = ("hello this world @2020!!! ") 10 | news=('') 11 | punc = ['@', '!', '#', '$', '%', '&', '*', '(', ')'] 12 | for i in s: 13 | if i not in punc: 14 | news = news + i 15 | 16 | 17 | print (news) 18 | -------------------------------------------------------------------------------- /Rakhi Pareek/Python Task 3/Ass 3.py: -------------------------------------------------------------------------------- 1 | # Question 3 2 | 3 | ''' 4 | You have a list with words - [“Apple”, “banana”, “cat”, “REGEX”,”apple”] 5 | ○ Sort words in Alphabetical order 6 | ■ If you get output, like [Apple, apple, banana] 7 | ● How has it happened? 8 | ''' 9 | 10 | ls = ["Apple", "banana", "cat", "REGEX","apple"] 11 | sortls = sorted(ls) 12 | print (sortls) 13 | 14 | 15 | 16 | ''' 17 | This happens because we have not specified the parameter key and default this is 18 | as the priority order of A then a 19 | ''' 20 | 21 | -------------------------------------------------------------------------------- /Rakhi Pareek/Python Task 5/ass1.py: -------------------------------------------------------------------------------- 1 | 2 | ''' 3 | 1. Hint: 4 | -> Make a use of Time Module and for Loop 5 | -> Output Should be : 6 | Loading. 7 | Loading.. 8 | Loading... 9 | Loading.... 10 | Loading..... 11 | Here it shows you 5 output but you have to print only "Loading....." in animated form. 12 | ''' 13 | 14 | 15 | 16 | import time 17 | print("Loading", end = "") 18 | i = 1 19 | while(i < 6): 20 | print('.', end = "") 21 | time.sleep(1) 22 | i += 1 23 | -------------------------------------------------------------------------------- /Rakhi Pareek/Python Task 5/ass3.py: -------------------------------------------------------------------------------- 1 | 2 | ''' 3 | 4 | 3. Make digital Clock and run it for 5 sec. 5 | Output: 6 | 16:39:08 7 | :09 8 | :10 9 | :11 10 | :12 11 | ''' 12 | import time 13 | 14 | 15 | i=0 16 | while i < 5: 17 | t = time.ctime() 18 | print(t[11:19]) 19 | time.sleep(1) 20 | i = (i+1) 21 | -------------------------------------------------------------------------------- /Rakhi Pareek/Python Task 5/ass4.py: -------------------------------------------------------------------------------- 1 | 2 | 3 | """ 4 | 4. Add anything in tuple.. example: (1,2,3,4) -> new tuple (1,2,3,4,5) 5 | """ 6 | 7 | t1 = (1,2,3,4) 8 | 9 | t2= (5,) #if a single element is in tuple so a , is required after it 10 | 11 | t3 = t1 + t2 12 | 13 | print(t3) 14 | -------------------------------------------------------------------------------- /Rakhi Pareek/Python Task 5/ass5.py: -------------------------------------------------------------------------------- 1 | # Question - 5 2 | 3 | 4 | """ 5 | WhatsApp texting using webbrowser Lib. 6 | """ 7 | 8 | import webbrowser as wb 9 | import time 10 | import pyautogui as g 11 | send = False 12 | print(time.ctime()) 13 | number = int(input("Enter the number to send message: ")) 14 | message = input("Enter your message") 15 | YourTime = input("Enter time to send message(hh:mm:ss): ") 16 | print(time.ctime()) 17 | while(True): 18 | t = time.ctime() 19 | str(t) 20 | a = t.split(" ") 21 | if a[3] == YourTime: 22 | send = True 23 | if send == True: 24 | print("send") 25 | send = False 26 | time.sleep(1) 27 | url = 'https://wa.me/'+str(number)+'?text='+str(message) 28 | print(url) 29 | wb.open(url) 30 | time.sleep(5) 31 | g.moveTo(670, 315) 32 | g.click() 33 | time.sleep(5) 34 | g.press('enter') 35 | print("Task Complete") 36 | -------------------------------------------------------------------------------- /Rakhi Pareek/Python-Task 6/question1.py: -------------------------------------------------------------------------------- 1 | # Question - 1 2 | """ 3 | 1. Write a Python program to read a file line by line and store it into a list 4 | """ 5 | 6 | ls=[] 7 | 8 | f = open("abc.txt", 'r') 9 | 10 | file_text = f.readlines() 11 | 12 | for word in file_text: 13 | ls.append(word) 14 | 15 | print(ls) 16 | 17 | 18 | -------------------------------------------------------------------------------- /Rakhi Pareek/Python-Task 6/question2.py: -------------------------------------------------------------------------------- 1 | # Question - 2 2 | """ 3 | 2. Write a Python program to read a file line by line store it into an array. 4 | """ 5 | 6 | 7 | arr = [] 8 | 9 | f = open("abc.txt", 'r') 10 | 11 | file_text = f.readlines() 12 | 13 | for word in file_text: 14 | arr.append(word) 15 | 16 | print(arr) -------------------------------------------------------------------------------- /Rakhi Pareek/Python-Task 6/question3.py: -------------------------------------------------------------------------------- 1 | # Question- 3 2 | """ 3 | Write a Python program to read a random line from a file. 4 | """ 5 | 6 | 7 | import random 8 | 9 | f = open("abc.txt", 'r') 10 | h = (f.read().splitlines()) 11 | print(random.choice(h)) 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Rakhi Pareek/Python-Task 6/question4.py: -------------------------------------------------------------------------------- 1 | # Question - 4 2 | 3 | """ 4 | 4. Write a Python program to combine each line from first file with the 5 | corresponding line in second file 6 | """ 7 | 8 | f = open("abc.txt", 'r') 9 | a = f.read().splitlines() 10 | 11 | f= open("xyz.txt", 'r') 12 | b = f.read().splitlines() 13 | 14 | ls = [] 15 | for i,j in zip(a,b): 16 | print(i + j) 17 | -------------------------------------------------------------------------------- /Rakhi Pareek/Python-Task 6/question5.py: -------------------------------------------------------------------------------- 1 | # Question - 5 2 | """ 3 | 5. Write a Python program to generate 26 text files named A.txt, B.txt, and 4 | so on up to Z.txt. 5 | """ 6 | 7 | 8 | # for list of capital alphabets 9 | alpha = [] 10 | for i in range (0,26): 11 | alpha.append(chr(ord('A') + i)) 12 | 13 | 14 | # for creation of files 15 | for word in alpha: 16 | f= open(word + '.txt', 'w') 17 | f.write(word + 'File') 18 | 19 | 20 | -------------------------------------------------------------------------------- /Rakhi Pareek/Python-Task 6/question6.py: -------------------------------------------------------------------------------- 1 | # Question - 6 2 | """ 3 | 6. Write a Python program to create a file where all letters of English 4 | alphabet are listed by specified number of letters on each line. 5 | """ 6 | 7 | import string 8 | def letters_file_line(n): 9 | with open("words1.txt", "w") as f: 10 | alphabet = string.ascii_uppercase 11 | letters = [alphabet[i:i + n] + "\n" for i in range(0, len(alphabet), n)] 12 | f.writelines(letters) 13 | letters_file_line(3) -------------------------------------------------------------------------------- /Rakhi Pareek/Python-Task 6/question7.py: -------------------------------------------------------------------------------- 1 | # Question - 7 2 | """ 3 | 7. #### MAIN TASK #### 4 | - To scrap data from worldometer example: INDIA Data and run it 5 | on live mode. 6 | - Print Additionally total number of Coronavirus 7 | Cases, Deaths, Recovered. 8 | """ 9 | 10 | import requests #handles the http requests 11 | from bs4 import BeautifulSoup # used to parse html data 12 | 13 | 14 | url = "https://www.worldometers.info/coronavirus/" 15 | page = requests.get(url) # generating http request 16 | print(page) # response 200 means OK 17 | 18 | page = page.text # to get the html code text 19 | print(page) 20 | 21 | soup = BeautifulSoup(page, "html.parser") # two parameters(#data, #parse) 22 | print(soup) #here the parsed html code is stored 23 | 24 | 25 | # find(div/section/head/body/h1/etc >> Tags, {class/id/xpath >> Attr : "attr_name" }) 26 | a = soup.find("div", {"class" : "maincounter-number"}) 27 | print(a) 28 | print(a.text) # for only printing the text inside a 29 | 30 | 31 | # printing all the text in h1 tags 32 | b = soup.find_all("h1") 33 | for i in b: 34 | print(i.text) 35 | 36 | # for getting all three datas 37 | c = soup.find_all("div", {"class" : "maincounter-number"}) 38 | for i in c: 39 | print(i.text) 40 | 41 | 42 | -------------------------------------------------------------------------------- /Rakhi Pareek/python task2/question1.py: -------------------------------------------------------------------------------- 1 | # What should be the output? ( 3 + 4 ** 6 - 9 * 10 / 2 ) 2 | 3 | a = (3+4**6-9*10/2) 4 | 5 | print (a) 6 | 7 | #Answer is 4054.0 8 | -------------------------------------------------------------------------------- /Rakhi Pareek/python task2/question2.py: -------------------------------------------------------------------------------- 1 | # Question 2 2 | ''' 3 | Let say I have, some string "hello this side regex" 4 | Find out the count of the total vowels 5 | vowels - ['a','e','i','o','u'] 6 | ''' 7 | 8 | vowels = ['a', 'e', 'i' ,'o', 'u'] 9 | 10 | text = ("hello this side regex") 11 | count = 0 12 | for i in text: 13 | if i in vowels: 14 | count = (count + 1) 15 | print (count) 16 | -------------------------------------------------------------------------------- /Rakhi Pareek/python task2/question3.py: -------------------------------------------------------------------------------- 1 | #Question 3 2 | ''' 3 | Find out the area of triangle 4 | - 1/2 * b * h (formula of area) 5 | - You have to take value from user about the base, & the height 6 | ''' 7 | 8 | 9 | base = int(input("Enter the base length of the triangle")) 10 | height = int(input("Enter the height of the triangle")) 11 | 12 | area = (0.5 * base * height) 13 | 14 | print ("Area of the triangle is ,", area) 15 | 16 | -------------------------------------------------------------------------------- /Rakhi Pareek/python task2/question4.py: -------------------------------------------------------------------------------- 1 | # Question 4 2 | ''' 3 | Print the calendar on the terminal. If you give the year. 4 | - Allow the user to input the year. 5 | - Then should that calendar of that year 6 | ''' 7 | 8 | import calendar 9 | 10 | year = int(input("Enter year : ")) 11 | 12 | print(calendar.calendar(year)) 13 | -------------------------------------------------------------------------------- /Rakhi Pareek/python task4/question1.py: -------------------------------------------------------------------------------- 1 | # Ques.-1 2 | 3 | ''' 4 | Write a Program to print new list which contains all the first Characters of strings present in a 5 | list..... 6 | LIST_STATES = ["GOA","RAJASTHAN","KARNATAKA","GUJRAT","MANIPUR","MADHYA PRADESH"] 7 | 8 | ''' 9 | 10 | LIST_STATES = ["GOA","RAJASTHAN","KARNATAKA","GUJRAT","MANIPUR","MADHYA PRADESH"] 11 | 12 | 13 | new_list = [] 14 | 15 | for i in LIST_STATES: 16 | new_list.append(i[0]) 17 | 18 | 19 | print(new_list) 20 | 21 | -------------------------------------------------------------------------------- /Rakhi Pareek/python task4/question2.py: -------------------------------------------------------------------------------- 1 | # Question-2 2 | 3 | ''' 4 | Write a program to replace each string with an integer value in a given list of strings. 5 | The replacement integer value should be a sum of AScci values of each character of type 6 | corresponding string........ 7 | LIST: ['GAnga', 'Tapti', 'Kaveri', 'Yamuna', 'Narmada' ] 8 | ''' 9 | 10 | LIST = ['GAnga', 'Tapti', 'Kaveri', 'Yamuna', 'Narmada' ] 11 | 12 | ls = [] 13 | add = 0 14 | for i in LIST: 15 | for j in i: 16 | add = add + ord(j) 17 | ls.append(add) 18 | print(ls) 19 | -------------------------------------------------------------------------------- /Rakhi Pareek/python task4/question3.py: -------------------------------------------------------------------------------- 1 | # Question-3 2 | 3 | ''' 4 | 3. ###### You have to run your Program at 9:00am. Date: 14th April 2020. 5 | #HINT: 6 | # You have to use datetime Module or time module.. 7 | # You have to convert your output in #LIST_FORMAT 8 | # [ '2020-04-13' , '17:11:01.952975' ] 9 | # you can use this with the helf of IF/Else statement 10 | ''' 11 | 12 | 13 | 14 | 15 | 16 | import datetime 17 | x = datetime.datetime.now() 18 | 19 | # converting the time to a list 20 | a = str(x) 21 | ls = a.split(" ") 22 | print(ls) 23 | 24 | # running program at 09:00 AM Date 14th April 2020 25 | import time 26 | while True: 27 | x = datetime.datetime.now() 28 | a = str(x) 29 | ls = a.split(" ") 30 | if ls == ['2020-04-14', '09:00:00.000000']: 31 | print("This is the time") 32 | break 33 | else: 34 | continue 35 | 36 | 37 | -------------------------------------------------------------------------------- /Rakhi Pareek/python task4/question4.py: -------------------------------------------------------------------------------- 1 | # Question - 4 2 | 3 | ''' 4 | GIve a tuple: 5 | tuple = ('a','l','g','o','r','i','t','h','m') 6 | 1. Using the concept of slicing, print the whole tuple 7 | 2. delete the element at the 3rd Index, print the tuple. 8 | 9 | ''' 10 | 11 | t = ('a','l','g','o','r','i','t','h','m') 12 | print(t[0:8]) 13 | s=t[:3]+t[4:] 14 | print(s) 15 | -------------------------------------------------------------------------------- /Rakhi Pareek/python task4/question5.py: -------------------------------------------------------------------------------- 1 | # Question - 5 2 | 3 | ''' 4 | Take a list REGex=[1,2,3,4,5,6,7,8,9,0,77,44,15,33,65,89,12] 5 | - print only those numbers greator then 20 6 | - then print those numbers those are less then 10 or equal to 10 7 | - store these above two list in two different list. 8 | 9 | ''' 10 | a=[] #list of those numbers greater then 20 11 | b=[] #list of those numbers those are less then 10 or equal to 10 12 | 13 | REGex=[1,2,3,4,5,6,7,8,9,0,77,44,15,33,65,89,12] 14 | for i in REGex: 15 | if i>20: 16 | a.append(i) 17 | elif i <= 10: 18 | b.append(i) 19 | 20 | print(a) 21 | 22 | print(b) 23 | -------------------------------------------------------------------------------- /Rayvant Sahni/Linux_Assignment_1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Rayvant Sahni/Linux_Assignment_1.docx -------------------------------------------------------------------------------- /Rayvant Sahni/Linux_Assignment_2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Rayvant Sahni/Linux_Assignment_2.docx -------------------------------------------------------------------------------- /Rayvant Sahni/Linux_Assignment_3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Rayvant Sahni/Linux_Assignment_3.docx -------------------------------------------------------------------------------- /Rayvant Sahni/PYTHON ASSIGNMENT 3-b.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Rayvant Sahni/PYTHON ASSIGNMENT 3-b.docx -------------------------------------------------------------------------------- /Rayvant Sahni/PYTHON ASSIGNMENT 4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Rayvant Sahni/PYTHON ASSIGNMENT 4.docx -------------------------------------------------------------------------------- /Rayvant Sahni/PYTHON ASSIGNMENT 5.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Rayvant Sahni/PYTHON ASSIGNMENT 5.docx -------------------------------------------------------------------------------- /Rayvant Sahni/PYTHON ASSIGNMENT 6.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Rayvant Sahni/PYTHON ASSIGNMENT 6.docx -------------------------------------------------------------------------------- /Rayvant Sahni/Python_Assignment_1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Rayvant Sahni/Python_Assignment_1.docx -------------------------------------------------------------------------------- /Rayvant Sahni/Python_Assignment_2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Rayvant Sahni/Python_Assignment_2.docx -------------------------------------------------------------------------------- /Rishita_Regex_Assignments/Task 1.txt: -------------------------------------------------------------------------------- 1 | Ques1:When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done? 2 | Answer: Hidden files can be seen using: ls -la 3 | 4 | Ques2:Make sub directories inside a parent directory by using single mkdir command. 5 | Answer: sudo mkdir -p A/B/C -------------------------------------------------------------------------------- /Rishita_Regex_Assignments/Task 5.txt: -------------------------------------------------------------------------------- 1 | Ques: What should be the output of the following? 2 | (3+4**6-9*10/2) 3 | Ans: 4054.0 4 | 5 | Ques: Let say I have, some string "hello this side regex". Find out the count of the total vowels in this string. 6 | Ans: >>>vowels='a,e,i,o,u' 7 | >>>vowels 8 | >>>count=0 9 | >>>string='hello this side regex' 10 | >>>for s in string: 11 | if s in vowels: count=count+1 12 | >>>count 13 | 14 | Ques: Find out the area of triangle. You have to take value from user about the base, and the height. 15 | Ans: >>> b = float(input('Enter base of a triangle: ')) 16 | >>> h = float(input('Enter height of a triangle: ')) 17 | >>> area = (b * h) / 2 18 | >>> print('The area of the triangle is %0.1f' % area) 19 | 20 | Ques: Print the calender on the terminal. If you give the year. 21 | -allow the user to input the year. 22 | -then print that calender of that year. 23 | Ans: import calendar 24 | y = int(input("Input the year : ")) 25 | m = int(input("Input the month : ")) 26 | print(calendar.month(y, m)) -------------------------------------------------------------------------------- /Riya Khanna/Python(2).txt: -------------------------------------------------------------------------------- 1 | Q1. What should be the output of (3+4**-9*10/2) 2 | Ans1. 4054.0 3 | 4 | Q2. Find out the total count of of vowels in the string "hello this side regex". 5 | Ans2. 6 | li=[] 7 | str="hello world regex" 8 | li=list(str) 9 | li.remove(' ') 10 | print(li) 11 | count=0 12 | for x in li: 13 | if x=='a' or x=='e' or x=='i' or x=='o' or x=='u': 14 | count=count+1 15 | print("Total Numer of vowels are:",count) 16 | 17 | 18 | Q3. Find the area of triangle. 19 | Ans3. 20 | h=float(input("Enter the height of triangle:")) 21 | b=float(input("Enter the value of base:")) 22 | area= (1/2*b*h) 23 | print("Area of Triangle is %0.2f" %area) 24 | 25 | Q4.Print the calendar on the terminal of the year input by the user. 26 | Ans4. 27 | import calendar 28 | yy=int(input("Enter the year")) 29 | print(calendar.calendar(yy)) -------------------------------------------------------------------------------- /Riya Khanna/Task 1.txt: -------------------------------------------------------------------------------- 1 | Q1.When we create a user some hidden files are generated in a directory of the same user. How is it done? 2 | 3 | Ans1.Hidden files and directories in the home directory contain settings or data that’s accessed by that user’s programs. 4 | They’re not intended to be edited by the user, only the application. That’s why they’re hidden from the user’s normal 5 | 6 | 7 | Q2.make subdirectories inside a parent directory using a single mkdir command. 8 | 9 | Ans2. mkdir -p A/{sub1,sub2,B/C/{c1,c2},} 10 | 11 | 12 | Q3.why does useradd command does not create a new directory in ubuntu? 13 | 14 | Ans3.useradd is a low level utility for adding users in comparsion to useradd. adduser is a friendlier frontend to useradd 15 | and will do things like create user directories by default. Also, useradd will setup tyhe required groups automatically. -------------------------------------------------------------------------------- /Riya Khanna/Task 3.txt: -------------------------------------------------------------------------------- 1 | Q1. While creating a new user, add that user in an already existing group. 2 | Ans1. The following command creates a new user riya with an group grpriya 3 | $ sudo useradd -g grpriya -G riya 4 | 5 | 6 | Q2.How to unzip bzip2 file? 7 | Ans2. tar -xf filename.tar.bz2 8 | 9 | Q3.Archive and compress file with extension bz2 and in that include some file and folder 10 | Ans3. tar cfvj file_name.tar.bz2 file1 file2 11 | 12 | Q4. At the time of creating a new user, change the shell of the user to /bin/shell 13 | Ans4. to create a new user named username with /bin/sh as a login shell type: 14 | $ sudo useradd -s /bin/sh username -------------------------------------------------------------------------------- /SHRESHTHA GUPTA/SHRESHTHA GUPTA/Talend Assignments/Aggregate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/SHRESHTHA GUPTA/SHRESHTHA GUPTA/Talend Assignments/Aggregate.png -------------------------------------------------------------------------------- /SHRESHTHA GUPTA/SHRESHTHA GUPTA/Talend Assignments/Filter_rows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/SHRESHTHA GUPTA/SHRESHTHA GUPTA/Talend Assignments/Filter_rows.png -------------------------------------------------------------------------------- /SHRESHTHA GUPTA/SHRESHTHA GUPTA/Talend Assignments/Find_and_replace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/SHRESHTHA GUPTA/SHRESHTHA GUPTA/Talend Assignments/Find_and_replace.png -------------------------------------------------------------------------------- /SHRESHTHA GUPTA/SHRESHTHA GUPTA/Talend Assignments/csv_to_xml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/SHRESHTHA GUPTA/SHRESHTHA GUPTA/Talend Assignments/csv_to_xml.png -------------------------------------------------------------------------------- /SHRESHTHA GUPTA/linux-1.txt: -------------------------------------------------------------------------------- 1 | ASSIGNMENT-1 2 | 3 | Q1. When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done ? 4 | Ans. 5 | Most commonly, hidden files and directories in the home directory contain settings or data that’s accessed by that user’s programs. They’re not intended to be edited by the user, only the application. That’s why they’re hidden from the user’s normal view. 6 | The hidden files in our Linux home directory are used to store user settings. This includes settings for command-line utilities as well as GUI-based applications. Removing them will remove user settings. Typically, it won’t cause a program to break. 7 | If we run ls -la on our home directory, we will discover a pile of hidden files and directories with dot prefixes. 8 | 9 | Q2. - Make sub directories inside a parent directory by using single mkdir command. 10 | Ans. 11 | When we want to create sub-directories , we will need to use – p parameter. This parameter will create parent directory first, if mkdir cannot find it. Let say we want to create directory named 'letter and directory named 'important' under directory letter. Then the syntax will be like this: 12 | mkdir – p letter/important 13 | 14 | 15 | 16 | SUBMITTED BY: 17 | SHRESHTHA GUPTA 18 | -------------------------------------------------------------------------------- /SHRESHTHA GUPTA/linux-3.txt: -------------------------------------------------------------------------------- 1 | ASSIGNMENT-3(LINUX) 2 | 3 | Q1.Create and compress the file with bzip2. 4 | Ans.To create a file: 5 | Touch filename.txt 6 | We can compress a file as below, where the flag -z enables file compression: 7 | bzip2 filename 8 | OR 9 | bzip2 -z filename 10 | Q2.What would be the argument to be given to unzip that file? 11 | Ans. sudo apt install unzip 12 | Unzip filename 13 | Q3.Read a file and show the data on terminal using file input and output redirection. 14 | Ans. gedit filename 15 | Cat < filename 16 | Q4. How to change the shell of user to “/bin/sh” at the time of adding the user? 17 | Ans. 18 | Syntax: 19 | useradd -s [shell] [username] 20 | For example: 21 | To set the shell of user testuser to /bin/sh:- 22 | useradd -s /bin/sh testuser 23 | 24 | 25 | SUBMITTED BY: 26 | SHRESHTHA GUPTA 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /SHRESHTHA GUPTA/python-2.txt: -------------------------------------------------------------------------------- 1 | PYTHON ASSIGNMENT-2 2 | 3 | Q1. What should be the output? ( 3 + 4 ** 6 - 9 * 10 / 2 ) 4 | Ans 5 | Output will be : 4054.0 6 | Q2. Let say I have, some string "hello this side regex" 7 | Find out the count of the total vowels. 8 | vowels - ['a','e','i','o','u'] 9 | Ans. 10 | string ="hello this side regex" 11 | vowel_counts = {} 12 | for vowel in "aeiou": 13 | count = string.count(vowel) 14 | vowel_counts[vowel] = count 15 | print(vowel_counts) 16 | 17 | Output will be: 18 | {'a': 0, 'e': 4, 'i': 2, 'o': 1, 'u': 0} 19 | Q3. Find out the area of triangle. 20 | 1/2 * b * h (formula of area) 21 | - You have to take value from user about the base, & the height. 22 | Ans 23 | base=int(input("Enter the base of the triangle")) 24 | height=int(input("Enter the height of the triangle")) 25 | area=base*height/2 26 | print(area) 27 | 28 | 29 | 30 | 31 | 32 | Q4. Print the calendar on the terminal. If you give the year. 33 | - Allow the user to input the year. 34 | - Then print calendar of that year. 35 | Ans. 36 | Import os 37 | Year=int(input(“Enter the year”)) 38 | os.system(“cal {}”.format(year)) 39 | 40 | Tried the above code in Redhat Terminal and it gave the required output. 41 | 42 | 43 | SUBMITTED BY: 44 | SHRESHTHA GUPTA 45 | -------------------------------------------------------------------------------- /Shruti/task1_shrutijain_batchA_linux.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Shruti/task1_shrutijain_batchA_linux.docx -------------------------------------------------------------------------------- /Shruti/task1_shrutijain_batchA_python.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Shruti/task1_shrutijain_batchA_python.docx -------------------------------------------------------------------------------- /Shruti/task2_shrutijain_BatchA_linux.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Shruti/task2_shrutijain_BatchA_linux.docx -------------------------------------------------------------------------------- /Shruti/task3_shrutijain_batchA_linux.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Shruti/task3_shrutijain_batchA_linux.docx -------------------------------------------------------------------------------- /Shubham/Assignment 1 6th April.txt: -------------------------------------------------------------------------------- 1 | Assignment 1 2 | 3 | 1) When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done ? 4 | 5 | Ans. It is done because these files are in the folder /etc/skel and whichever files we place in this folder those files will be 6 | made available in the home directory of all the users which we create afterwards. 7 | For reference following are some commands to create a file in /etc/skel and creating and listing files in /home/user 8 | files 9 | Note:- Make sure you've logged in to root user :- 10 | 1. cd /etc/root 11 | 2. vim TestingFiles.txt 12 | --> Hello This is testing content in TestingFiles.txt document 13 | close the file by pressing :wq and press enter. 14 | 3. useradd RedhatUser 15 | 4. ls /home/RedhatUser 16 | Now you'll find the TestingFiles.txt document in this folder which is the proof that whichever files we put in the folder 17 | /etc/skel will be available to all the users created after it. 18 | 19 | 20 | 2) Make sub directories inside a parent directory by using single mkdir command. 21 | 22 | Ans. mkdir -p A/B/C (-p for parent directoy option). -------------------------------------------------------------------------------- /Shubham/Assignment 3 8th April.txt: -------------------------------------------------------------------------------- 1 | 8th April Assignment-3 2 | 3 | 1). Create and compress file with extension bzip2. 4 | Ans 3. tar -cvzf ContentFile.tar.bz2 content.txt 5 | 6 | 2) What should be the argument to be given to unzip that file.? 7 | Ans 2. bzip2 -d filename.bz2 where -d specifies Decompress 8 | 9 | 3) Read a file & show the data on terminal using file input & output redirection 10 | Ans3 cat < File.txt 11 | 12 | 4) How to change the shell of user to “/bin/sh” at the time of adding the user 13 | 14 | Ans 4. useradd -s /bin/sh RedhatUser -------------------------------------------------------------------------------- /Shubham/Linux/Linux_Assignments.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Shubham/Linux/Linux_Assignments.txt -------------------------------------------------------------------------------- /Shubham/Python/Python Assignments.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Shubham/Python/Python Assignments.txt -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 3/question1.py: -------------------------------------------------------------------------------- 1 | # Question 1 2 | ''' 3 | Find the Armstrong Number between the two numbers which are input by user 4 | ○ Armstrong number : 153 -> 1*1*1 + 5*5*5 + 3*3*3 5 | ''' 6 | 7 | number1 = int(input("Enter the starting number")) 8 | number2 = int(input("Enter the ending number")) 9 | 10 | for i in range(number1, number2 + 1): 11 | sum = 0 12 | temp = i 13 | while temp > 0: 14 | digit = temp % 10 15 | sum = sum + digit ** 3 16 | temp = temp // 10 17 | 18 | if i == sum: 19 | print (i) 20 | 21 | 22 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 3/question2.py: -------------------------------------------------------------------------------- 1 | # Question 2 2 | ''' 3 | Let’s say you have a string “hello this world @2020!!! ” 4 | ○ Remove the punctuation like [“@!#$%&*()”] from the string 5 | ■ Final output should be without the punctuation 6 | ● “hello this world 2020” 7 | ''' 8 | 9 | s = ("hello this world @2020!!! ") 10 | news=('') 11 | punc = ['@', '!', '#', '$', '%', '&', '*', '(', ')'] 12 | for i in s: 13 | if i not in punc: 14 | news = news + i 15 | 16 | 17 | print (news) 18 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 3/question3.py: -------------------------------------------------------------------------------- 1 | # Question 3 2 | 3 | ''' 4 | You have a list with words - [“Apple”, “banana”, “cat”, “REGEX”,”apple”] 5 | ○ Sort words in Alphabetical order 6 | ■ If you get output, like [Apple, apple, banana] 7 | ● How has it happened? 8 | ''' 9 | 10 | ls = ["Apple", "banana", "cat", "REGEX","apple"] 11 | sortls = sorted(ls) 12 | print (sortls) 13 | 14 | 15 | 16 | ''' 17 | This happens because we have not specified the parameter key and default this is 18 | as the priority order of A then a 19 | ''' 20 | 21 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 2/question1.py: -------------------------------------------------------------------------------- 1 | # What should be the output? ( 3 + 4 ** 6 - 9 * 10 / 2 ) 2 | 3 | a = (3+4**6-9*10/2) 4 | 5 | print (a) 6 | 7 | #Answer is 4054.0 8 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 2/question2.py: -------------------------------------------------------------------------------- 1 | # Question 2 2 | ''' 3 | Let say I have, some string "hello this side regex" 4 | Find out the count of the total vowels 5 | vowels - ['a','e','i','o','u'] 6 | ''' 7 | 8 | vowels = ['a', 'e', 'i' ,'o', 'u'] 9 | 10 | text = ("hello this side regex") 11 | count = 0 12 | for i in text: 13 | if i in vowels: 14 | count = (count + 1) 15 | print (count) 16 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 2/question3.py: -------------------------------------------------------------------------------- 1 | #Question 3 2 | ''' 3 | Find out the area of triangle 4 | - 1/2 * b * h (formula of area) 5 | - You have to take value from user about the base, & the height 6 | ''' 7 | 8 | 9 | base = int(input("Enter the base length of the triangle")) 10 | height = int(input("Enter the height of the triangle")) 11 | 12 | area = (0.5 * base * height) 13 | 14 | print ("Area of the triangle is ,", area) 15 | 16 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 2/question4.py: -------------------------------------------------------------------------------- 1 | # Question 4 2 | ''' 3 | Print the calendar on the terminal. If you give the year. 4 | - Allow the user to input the year. 5 | - Then should that calendar of that year 6 | ''' 7 | 8 | import calendar 9 | 10 | year = int(input("Enter year : ")) 11 | 12 | print(calendar.calendar(year)) 13 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 4/question1.py: -------------------------------------------------------------------------------- 1 | # Question-1 2 | 3 | ''' 4 | Write a Program to print new list which contains all the first Characters of strings present in a 5 | list..... 6 | LIST_STATES = ["GOA","RAJASTHAN","KARNATAKA","GUJRAT","MANIPUR","MADHYA PRADESH"] 7 | 8 | ''' 9 | 10 | LIST_STATES = ["GOA","RAJASTHAN","KARNATAKA","GUJRAT","MANIPUR","MADHYA PRADESH"] 11 | 12 | 13 | new_list = [] 14 | 15 | for i in LIST_STATES: 16 | new_list.append(i[0]) 17 | 18 | 19 | print(new_list) 20 | 21 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 4/question2.py: -------------------------------------------------------------------------------- 1 | # Question-2 2 | 3 | ''' 4 | Write a program to replace each string with an integer value in a given list of strings. 5 | The replacement integer value should be a sum of AScci values of each character of type 6 | corresponding string........ 7 | LIST: ['GAnga', 'Tapti', 'Kaveri', 'Yamuna', 'Narmada' ] 8 | ''' 9 | 10 | LIST = ['GAnga', 'Tapti', 'Kaveri', 'Yamuna', 'Narmada' ] 11 | 12 | ls = [] 13 | add = 0 14 | for i in LIST: 15 | for j in i: 16 | add = add + ord(j) 17 | ls.append(add) 18 | ls -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 4/question3.py: -------------------------------------------------------------------------------- 1 | # Question-3 2 | 3 | ''' 4 | 3. ###### You have to run your Program at 9:00am. Date: 14th April 2020. 5 | #HINT: 6 | # You have to use datetime Module or time module.. 7 | # You have to convert your output in #LIST_FORMAT 8 | # [ '2020-04-13' , '17:11:01.952975' ] 9 | # you can use this with the helf of IF/Else statement 10 | ''' 11 | 12 | 13 | 14 | import datetime 15 | x = datetime.datetime.now() 16 | 17 | # converting the time to a list 18 | a = str(x) 19 | ls = a.split(" ") 20 | 21 | 22 | 23 | # running program at 09:00 AM Date 14th April 2020 24 | import time 25 | while True: 26 | x = time.ctime() 27 | ls = x.split(" ") 28 | print(ls) 29 | if ls == ['Wed', 'Apr', '15', '15:08:03', '2020']: 30 | print("This is the time") 31 | break 32 | else: 33 | continue 34 | 35 | 36 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 4/question4.py: -------------------------------------------------------------------------------- 1 | # Question - 4 2 | 3 | ''' 4 | GIve a tuple: 5 | tuple = ('a','l','g','o','r','i','t','h','m') 6 | 1. Using the concept of slicing, print the whole tuple 7 | 2. delete the element at the 3rd Index, print the tuple. 8 | 9 | ''' 10 | 11 | t = ('a','l','g','o','r','i','t','h','m') 12 | 13 | for i in range(9): 14 | print(t[i]) -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 4/question5.py: -------------------------------------------------------------------------------- 1 | # Question - 5 2 | 3 | ''' 4 | Take a list REGex=[1,2,3,4,5,6,7,8,9,0,77,44,15,33,65,89,12] 5 | - print only those numbers greator then 20 6 | - then print those numbers those are less then 10 or equal to 10 7 | - store these above two list in two different list. 8 | 9 | ''' 10 | a=[] #list of those numbers greator then 20 11 | b=[] #list of those numbers those are less then 10 or equal to 10 12 | 13 | REGex=[1,2,3,4,5,6,7,8,9,0,77,44,15,33,65,89,12] 14 | for i in REGex: 15 | if i>20: 16 | a.append(i) 17 | elif i <= 10: 18 | b.append(i) 19 | 20 | print(a) #list of those numbers greator then 20 21 | 22 | print(b) #list of those numbers those are less then 10 or equal to 10 23 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 5/question1.py: -------------------------------------------------------------------------------- 1 | # Question-1 2 | 3 | ''' 4 | 1. Hint: 5 | -> Make a use of Time Module and for Loop 6 | -> Output Should be : 7 | Loading. 8 | Loading.. 9 | Loading... 10 | Loading.... 11 | Loading..... 12 | Here it shows you 5 output but you have to print only "Loading....." in animated form. 13 | ''' 14 | 15 | 16 | 17 | import time 18 | print("Loading", end = "") 19 | i = 1 20 | while(i < 6): 21 | print('.', end = "") 22 | time.sleep(1) 23 | i += 1 -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 5/question2.txt: -------------------------------------------------------------------------------- 1 | Question - 2 Difference between Return and Yield ? 2 | 3 | 4 | 5 | 6 | The yield statement is used in Python generators to replace the return of a function to send a value back to its caller without destroying local variables. A generator is a special function in Python that returns a generator object to the caller rather than a data value. 7 | The return statement, unlike the yield statement, exits from a function, handing back a value to its caller. Typically, a return statement appears at the very end of a function block to return the final result of executing all statements contained in that function. All functions return a value and if there is no value specified, it will return “None”. 8 | Generators vs. Functions in Python Yield and Return 9 | The yield statement is explicitly used with Python generators. Syntactically, a generator is a function with a yield statement. While a function can have multiple return statements, only one of them can be called for any given invocation of the function. 10 | Unlike a function which only returns once, generators can halt execution and yield intermediate results. Each generator is defined as a function, but instead of the return keyword, yield keyword is used inside the function block to indicate that the return value is only temporary and the whole generator can be resumed even after the return value is obtained. -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 5/question3.py: -------------------------------------------------------------------------------- 1 | # Question - 3 2 | 3 | ''' 4 | 5 | 3. Make digital Clock and run it for 5 sec. 6 | Output: 7 | 16:39:08 8 | :09 9 | :10 10 | :11 11 | :12 12 | ''' 13 | import time 14 | 15 | 16 | i=0 17 | while i < 5: 18 | t = time.ctime() 19 | print(t[11:19]) 20 | time.sleep(1) 21 | i = (i+1) -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 5/question4.py: -------------------------------------------------------------------------------- 1 | # Question - 4 2 | 3 | 4 | """ 5 | 4. Add anything in tuple.. example: (1,2,3,4) -> new tuple (1,2,3,4,5) 6 | """ 7 | 8 | t1 = (1,2,3,4) 9 | 10 | t2= (5,) #if a single element is in tuple so a , is required after it 11 | 12 | t3 = t1 + t2 13 | 14 | print(t3) -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 5/question5.py: -------------------------------------------------------------------------------- 1 | # Question - 5 2 | 3 | 4 | """ 5 | WhatsApp texting using webbrowser Lib. 6 | """ 7 | 8 | import webbrowser as wb 9 | import time 10 | import pyautogui as g 11 | send = False 12 | print(time.ctime()) 13 | number = int(input("Enter the number to send message: ")) 14 | message = input("Enter your message") 15 | YourTime = input("Enter time to send message(hh:mm:ss): ") 16 | print(time.ctime()) 17 | while(True): 18 | t = time.ctime() 19 | str(t) 20 | a = t.split(" ") 21 | if a[3] == YourTime: 22 | send = True 23 | if send == True: 24 | print("send") 25 | send = False 26 | time.sleep(1) 27 | url = 'https://wa.me/'+str(number)+'?text='+str(message) 28 | print(url) 29 | wb.open(url) 30 | time.sleep(5) 31 | g.moveTo(670, 315) 32 | g.click() 33 | time.sleep(5) 34 | g.press('enter') 35 | print("Task Complete") 36 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/A.txt: -------------------------------------------------------------------------------- 1 | AFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/B.txt: -------------------------------------------------------------------------------- 1 | BFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/C.txt: -------------------------------------------------------------------------------- 1 | CFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/D.txt: -------------------------------------------------------------------------------- 1 | DFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/E.txt: -------------------------------------------------------------------------------- 1 | EFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/F.txt: -------------------------------------------------------------------------------- 1 | FFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/G.txt: -------------------------------------------------------------------------------- 1 | GFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/H.txt: -------------------------------------------------------------------------------- 1 | HFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/I.txt: -------------------------------------------------------------------------------- 1 | IFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/J.txt: -------------------------------------------------------------------------------- 1 | JFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/K.txt: -------------------------------------------------------------------------------- 1 | KFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/L.txt: -------------------------------------------------------------------------------- 1 | LFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/M.txt: -------------------------------------------------------------------------------- 1 | MFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/N.txt: -------------------------------------------------------------------------------- 1 | NFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/O.txt: -------------------------------------------------------------------------------- 1 | OFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/P.txt: -------------------------------------------------------------------------------- 1 | PFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/Q.txt: -------------------------------------------------------------------------------- 1 | QFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/R.txt: -------------------------------------------------------------------------------- 1 | RFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/S.txt: -------------------------------------------------------------------------------- 1 | SFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/T.txt: -------------------------------------------------------------------------------- 1 | TFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/U.txt: -------------------------------------------------------------------------------- 1 | UFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/V.txt: -------------------------------------------------------------------------------- 1 | VFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/W.txt: -------------------------------------------------------------------------------- 1 | WFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/X.txt: -------------------------------------------------------------------------------- 1 | XFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/Y.txt: -------------------------------------------------------------------------------- 1 | YFile -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/abc.txt: -------------------------------------------------------------------------------- 1 | line a 2 | line b 3 | line c -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/question1.py: -------------------------------------------------------------------------------- 1 | # Question - 1 2 | """ 3 | 1. Write a Python program to read a file line by line and store it into a list 4 | """ 5 | 6 | ls=[] 7 | 8 | f = open("abc.txt", 'r') 9 | 10 | file_text = f.readlines() 11 | 12 | for word in file_text: 13 | ls.append(word) 14 | 15 | print(ls) 16 | 17 | 18 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/question2.py: -------------------------------------------------------------------------------- 1 | # Question - 2 2 | """ 3 | 2. Write a Python program to read a file line by line store it into an array. 4 | """ 5 | 6 | 7 | arr = [] 8 | 9 | f = open("abc.txt", 'r') 10 | 11 | file_text = f.readlines() 12 | 13 | for word in file_text: 14 | arr.append(word) 15 | 16 | print(arr) -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/question3.py: -------------------------------------------------------------------------------- 1 | # Question- 3 2 | """ 3 | Write a Python program to read a random line from a file. 4 | """ 5 | 6 | 7 | import random 8 | 9 | f = open("abc.txt", 'r') 10 | h = (f.read().splitlines()) 11 | print(random.choice(h)) 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/question4.py: -------------------------------------------------------------------------------- 1 | # Question - 4 2 | 3 | """ 4 | 4. Write a Python program to combine each line from first file with the 5 | corresponding line in second file 6 | """ 7 | 8 | f = open("abc.txt", 'r') 9 | a = f.read().splitlines() 10 | 11 | f= open("xyz.txt", 'r') 12 | b = f.read().splitlines() 13 | 14 | ls = [] 15 | for i,j in zip(a,b): 16 | print(i + j) 17 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/question5.py: -------------------------------------------------------------------------------- 1 | # Question - 5 2 | """ 3 | 5. Write a Python program to generate 26 text files named A.txt, B.txt, and 4 | so on up to Z.txt. 5 | """ 6 | 7 | 8 | # for list of capital alphabets 9 | alpha = [] 10 | for i in range (0,26): 11 | alpha.append(chr(ord('A') + i)) 12 | 13 | 14 | # for creation of files 15 | for word in alpha: 16 | f= open(word + '.txt', 'w') 17 | f.write(word + 'File') 18 | 19 | 20 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/question6.py: -------------------------------------------------------------------------------- 1 | # Question - 6 2 | """ 3 | 6. Write a Python program to create a file where all letters of English 4 | alphabet are listed by specified number of letters on each line. 5 | """ 6 | 7 | import string 8 | def letters_file_line(n): 9 | with open("words1.txt", "w") as f: 10 | alphabet = string.ascii_uppercase 11 | letters = [alphabet[i:i + n] + "\n" for i in range(0, len(alphabet), n)] 12 | f.writelines(letters) 13 | letters_file_line(3) -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/question7.py: -------------------------------------------------------------------------------- 1 | # Question - 7 2 | """ 3 | 7. #### MAIN TASK #### 4 | - To scrap data from worldometer example: INDIA Data and run it 5 | on live mode. 6 | - Print Additionally total number of Coronavirus 7 | Cases, Deaths, Recovered. 8 | """ 9 | 10 | import requests #handles the http requests 11 | from bs4 import BeautifulSoup # used to parse html data 12 | 13 | 14 | url = "https://www.worldometers.info/coronavirus/" 15 | page = requests.get(url) # generating http request 16 | print(page) # response 200 means OK 17 | 18 | page = page.text # to get the html code text 19 | print(page) 20 | 21 | soup = BeautifulSoup(page, "html.parser") # two parameters(#data, #parse) 22 | print(soup) #here the parsed html code is stored 23 | 24 | 25 | # find(div/section/head/body/h1/etc >> Tags, {class/id/xpath >> Attr : "attr_name" }) 26 | a = soup.find("div", {"class" : "maincounter-number"}) 27 | print(a) 28 | print(a.text) # for only printing the text inside a 29 | 30 | 31 | # printing all the text in h1 tags 32 | b = soup.find_all("h1") 33 | for i in b: 34 | print(i.text) 35 | 36 | # for getting all three datas 37 | c = soup.find_all("div", {"class" : "maincounter-number"}) 38 | for i in c: 39 | print(i.text) 40 | 41 | 42 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/words1.txt: -------------------------------------------------------------------------------- 1 | ABC 2 | DEF 3 | GHI 4 | JKL 5 | MNO 6 | PQR 7 | STU 8 | VWX 9 | YZ 10 | -------------------------------------------------------------------------------- /Shubhang Vats/Python-Task 6/xyz.txt: -------------------------------------------------------------------------------- 1 | line 1 2 | line 2 3 | line 3 -------------------------------------------------------------------------------- /Shubhang Vats/Task 1/Session #3(Late Night task - Question 2).txt: -------------------------------------------------------------------------------- 1 | CREATING SUB-DIRECTORY UNDER DIRECTORY USING ONE MKDIR COMMAND 2 | 3 | 4 | shubhangvats@ubuntu:~$ pwd 5 | /home/shubhangvats 6 | shubhangvats@ubuntu:~$ mkdir -p A/B/C 7 | shubhangvats@ubuntu:~$ ls 8 | A Documents examples.desktop Pictures shubh vats 9 | Desktop Downloads Music Public Templates Videos 10 | shubhangvats@ubuntu:~$ cd A 11 | shubhangvats@ubuntu:~/A$ ls 12 | B 13 | shubhangvats@ubuntu:~/A$ cd B 14 | shubhangvats@ubuntu:~/A/B$ ls 15 | C 16 | shubhangvats@ubuntu:~/A/B$ 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /Shubhang Vats/Task 1/Session #3{Late Night task - Question 1).txt: -------------------------------------------------------------------------------- 1 | Ques: When we create a new user some hidden files are created in the directory of the same user at that time. How is it done ? 2 | 3 | Ans: 'adduser' command reads the content of the /etc/login.defs file. This file contains configuration for the shadow password suite such as password expiration policy, ranges of user IDs used when creating system and regular users and more. So as this file contains login details so some hidden files are created at the time of creating a new user. -------------------------------------------------------------------------------- /Shubhang Vats/Task 1/Task-1.txt: -------------------------------------------------------------------------------- 1 | Task 1 2 | 3 | Ques: Why a directory of username is not created when we run the command '$ useradd username' in the home whereas it is created when we use the command '$ adduser username' ? 4 | 5 | Ans: By default 'useradd' command creates a user's home directory under /home directory with username. 6 | 7 | 8 | The useradd program has been deprecated in favor of adduser. From man useradd: 9 | useradd is a low level utility for adding users. Administrators should usually use adduser instead. 10 | 11 | adduser is a friendlier frontend to useradd and will do things like create user directories by default. When you run it with only a username as an argument, you will be prompted to provide additional information such as the password 12 | 13 | In general, you should always use adduser instead of useradd since this will also set up the required groups automatically. As explained in man adduser: 14 | 15 | "adduser and addgroup add users and groups to the system according to command line options and configuration information in /etc/adduser.conf. They are friendlier front ends to the low level tools like useradd, groupadd and usermod programs, by default choosing Debian policy conformant UID and GID values, creating a home directory with skeletal configuration, running a custom script, and other features. " -------------------------------------------------------------------------------- /Sukriti Shah/Sukriti Shah - Linux - 1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Sukriti Shah/Sukriti Shah - Linux - 1.docx -------------------------------------------------------------------------------- /Sukriti Shah/Sukriti Shah - Linux - 2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Sukriti Shah/Sukriti Shah - Linux - 2.docx -------------------------------------------------------------------------------- /Sukriti Shah/Sukriti Shah - Linux - 3.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Sukriti Shah/Sukriti Shah - Linux - 3.docx -------------------------------------------------------------------------------- /Sukriti Shah/Sukriti Shah - Python - 1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Sukriti Shah/Sukriti Shah - Python - 1.docx -------------------------------------------------------------------------------- /Sukriti Shah/Sukriti Shah - Python - 2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Sukriti Shah/Sukriti Shah - Python - 2.docx -------------------------------------------------------------------------------- /Sunita Kumari/Assignment_Linux.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Sunita Kumari/Assignment_Linux.docx -------------------------------------------------------------------------------- /Sunita Kumari/Assignment_Linux_Session#3,#4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Sunita Kumari/Assignment_Linux_Session#3,#4.docx -------------------------------------------------------------------------------- /Sunita Kumari/Assignment_Linux_Session#5.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Sunita Kumari/Assignment_Linux_Session#5.docx -------------------------------------------------------------------------------- /Sunita Kumari/Assignment_Python_Session#1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Sunita Kumari/Assignment_Python_Session#1.docx -------------------------------------------------------------------------------- /Sunita Kumari/Assignment_Python_Session#2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Sunita Kumari/Assignment_Python_Session#2.docx -------------------------------------------------------------------------------- /Takshil Patel/Assingment 1.txt: -------------------------------------------------------------------------------- 1 | Q-1) When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done? 2 | Ans -> The /etc/skel directory contains files and directories that are automatically copied over to a new user's home directory when such user is created by the useradd 3 | program. 4 | Several user configuration files are placed in /etc/skel by default when the operating system is installed. Typically they might include .bash_profile, .bashrc, 5 | .bash_logout, dircolors, .inputrc and .vimrc. 6 | The Home Directory has the following hidden files: 7 | ->System Settings: 8 | ->Configuration files 9 | ->User Profiles 10 | ->Desktop Environment Settings 11 | ->Application Configuration Profiles: 12 | ->Configuration files for applications 13 | ->Web browser data 14 | ->Caches 15 | ->Logs 16 | 17 | Q-2) Make sub directories inside a parent directory by using single mkdir command: 18 | Ans -> mkdir -p A/B/C 19 | 20 | Q-3) Why user folder is not created in by using useradd command? 21 | Ans -> When a user is created using useradd command, no shell is allocated to that user, so for the folder of the user to be created, one need to first create user 22 | using useradd and the after assigning a password by in the /etc/passwd file. -------------------------------------------------------------------------------- /Takshil Patel/Assingment 2.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Takshil Patel/Assingment 2.doc -------------------------------------------------------------------------------- /Takshil Patel/Assingment 3.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Takshil Patel/Assingment 3.doc -------------------------------------------------------------------------------- /Takshil Patel/Assingment 4(Python).doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Takshil Patel/Assingment 4(Python).doc -------------------------------------------------------------------------------- /Takshil Patel/Assingment 5(Python).doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Takshil Patel/Assingment 5(Python).doc -------------------------------------------------------------------------------- /Tanuj Kumawat/Linux Assignment 1.txt: -------------------------------------------------------------------------------- 1 | 1) When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done ? 2 | 3 | Ans. It is done because these files are in the folder /etc/skel and whichever files we place in this folder those files will be 4 | made available in the home directory of all the users which we create afterwards. 5 | For reference following are some commands to create a file in /etc/skel and creating and listing files in /home/user 6 | files 7 | -> cd /etc/root 8 | -> touch TestFile 9 | -> useradd RedhatUser 10 | -> ls /home/RedhatUser 11 | Now you'll find the TestFile document in this folder which is the proof that whichever files we put in the folder 12 | /etc/skel will be available to all the users created after it. 13 | 14 | 15 | 2) Make sub directories inside a parent directory by using single mkdir command. 16 | 17 | Ans. mkdir -p A/B/C (-p for parent directoy option). -------------------------------------------------------------------------------- /Tanuj Kumawat/Linux assignment 3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Tanuj Kumawat/Linux assignment 3.txt -------------------------------------------------------------------------------- /Tanuj Kumawat/Python Assignment 1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Tanuj Kumawat/Python Assignment 1.txt -------------------------------------------------------------------------------- /Tanuj Kumawat/python assignment 2.txt: -------------------------------------------------------------------------------- 1 | Ques 1. What should be the output? 2 | ( 3 + 4 ** 6 - 9 * 10 / 2 ) 3 | Ans. 4054.0 4 | 5 | Ques 2. Let say I have, some string "hello this side regex" 6 | Find out the count of the total vowels 7 | vowels - ['a','e','i','o','u'] 8 | Ans. string = "hello this side regex" 9 | temp = [] 10 | for i in range(len(string)): 11 | if string[i]=='a' or string[i]=='e' or string[i]=='i' or string[i]=='o' or string[i]=='u': 12 | if(string[i] not in temp): 13 | temp.append(string[i]) 14 | c = string.lower().count(string[i]) 15 | print(f"{string[i]} : {c} ") 16 | 17 | 18 | Ques 3. Find out the area of triangle 19 | - 1/2 * b * h (formula of area) 20 | - You have to take value from user about the base, & the height 21 | Ans. b, h = input("Enter the value of base and height of the trianhle space seprated : ").split(" ") 22 | print(f"Area of Triangle : {1/2 * int(b) * int(h)} ") 23 | 24 | 25 | Ques 4. Print the calendar on the terminal. If you give the year. 26 | - Allow the user to input the year. 27 | - Then should that calendar of that year 28 | Ans. import calendar 29 | y = input("enter the year : ") 30 | for i in range(1,13): 31 | print(calendar.month(int(y),i)) -------------------------------------------------------------------------------- /Tanuj Kumawat/python assignment 3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/Tanuj Kumawat/python assignment 3.txt -------------------------------------------------------------------------------- /Tanuj Kumawat/python assignment 7.txt: -------------------------------------------------------------------------------- 1 | Ques 1. World meter coronacases table 2 | Ans. import requests 3 | from bs4 import BeautifulSoup 4 | url = "https://www.worldometers.info/coronavirus/" 5 | page = requests.get(url) 6 | soup = BeautifulSoup(page.content,'html.parser') 7 | data=soup.find("table", {"id":"main_table_countries_today"}) 8 | a=str(data.text.strip()).replace(",","") 9 | a=a.replace("\n",",").replace(",,","") 10 | print(a) 11 | f=open("world_data.txt",'a') 12 | f.write(a) 13 | f.close() -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-architect -------------------------------------------------------------------------------- /aditilohomi/linux (1-3).docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/aditilohomi/linux (1-3).docx -------------------------------------------------------------------------------- /aditilohomi/python(1-2).docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/aditilohomi/python(1-2).docx -------------------------------------------------------------------------------- /aditilohomi/python(1-3).docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/aditilohomi/python(1-3).docx -------------------------------------------------------------------------------- /geeta/assignment.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/geeta/assignment.docx -------------------------------------------------------------------------------- /hemantharsh1512/ass1 (1).pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/hemantharsh1512/ass1 (1).pdf -------------------------------------------------------------------------------- /hemantharsh1512/ass2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/hemantharsh1512/ass2.pdf -------------------------------------------------------------------------------- /hemantharsh1512/ass3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/hemantharsh1512/ass3.pdf -------------------------------------------------------------------------------- /hemantharsh1512/python assignments (1)/python assignments (1).pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/hemantharsh1512/python assignments (1)/python assignments (1).pdf -------------------------------------------------------------------------------- /hemantharsh1512/python assignments (1)/python assignments (2).pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/hemantharsh1512/python assignments (1)/python assignments (2).pdf -------------------------------------------------------------------------------- /hemantharsh1512/python assignments (1)/python3ass..pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/hemantharsh1512/python assignments (1)/python3ass..pdf -------------------------------------------------------------------------------- /hitanshi/Linux-01.txt: -------------------------------------------------------------------------------- 1 | Linux Assignment-01 2 | Answers 3 | 4 | 5 | 1) When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done ? 6 | Ans.It is done because these files are in the folder /etc/skel and whichever files we place in this folder those files will be 7 | made available in the home directory of all the users which we create afterwards. 8 | For reference following are some commands to create a file in /etc/skel and creating and listing files in /home/user 9 | files 10 | -> cd /etc/root 11 | -> touch TestFile 12 | -> useradd RedhatUser 13 | -> ls /home/RedhatUser 14 | Now you'll find the TestFile document in this folder which is the proof that whichever files we put in the folder 15 | /etc/skel will be available to all the users created after it. 16 | 17 | 18 | 2)Make sub directories inside a parent directory by using single mkdir command. 19 | Ans. mkdir -p A/B/C (-p for parent directoy option). -------------------------------------------------------------------------------- /hitanshi/Linux-03 1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/hitanshi/Linux-03 1.txt -------------------------------------------------------------------------------- /hitanshi/Python-01 1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/hitanshi/Python-01 1.txt -------------------------------------------------------------------------------- /hitanshi/Python-03.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/hitanshi/Python-03.txt -------------------------------------------------------------------------------- /hitanshi/linux-02.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/hitanshi/linux-02.txt -------------------------------------------------------------------------------- /hitesh khandelwal/linux asy 1.txt: -------------------------------------------------------------------------------- 1 | Ques 1 When we create user some hidden files are generated in the directory of the same user at that time. 2 | how is it done ? 3 | 4 | Ques 2 Make subdirectories inside a parent directory by using single mkdir command ? 5 | 6 | Ques 3 tac command vs cat command ? 7 | 8 | 9 | Ans 1 when we create a new user then all the files from etc/skel are copied to the home of new user. 10 | the command to view these files is ls -a 11 | 12 | Ans 2 mkdir A A/B A/B/C 13 | 14 | Ans 3 cat command is used to display the contents of file. 15 | from first line to last line. 16 | whereas tac command is also used to display the contents of file 17 | but here last line appears at top and first line appears at last. 18 | -------------------------------------------------------------------------------- /kirti 2/assg 3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kirti 2/assg 3.txt -------------------------------------------------------------------------------- /kirti/assg 1 python.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kirti/assg 1 python.txt -------------------------------------------------------------------------------- /kirti/assg 1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kirti/assg 1.txt -------------------------------------------------------------------------------- /kirti/assg 2.txt: -------------------------------------------------------------------------------- 1 | 1) How to change the group of files and folders using single command? 2 | solution- sudo chgrp -R groupname filename. 3 | 4 | 5 | 2) Create a new user and at the same time you have to add that user into the group you have already . 6 | solution-Useradd - g grpname username 7 | Check with id command 8 | id username 9 | 10 | 11 | 3) how to unzip the bz2 file? 12 | solution- tar xjf file.tar.bz2 - to uncompress a bzip2 tar file (.tbz or .tar.bz2) to extract the contents. 13 | x = eXtract, this indicated an extraction c = create to create ) 14 | j = bzip2-zipped 15 | f = from/to file ... (what is next after the f is the archive file) 16 | 17 | 18 | 4) archive + compress file with extension bz2 and in that include some files with data and a folder 19 | solution- tar -cvjf test.tar.b2z 1 2 3 one 20 | after this ls 21 | 22 | 23 | 5) add user and at the same time you have to change the shell of user to /bin/sh means as default the shell is bin/sh 24 | solution- useradd -s /bin/sh kirti 25 | for checking- Vi /etc/passwd -------------------------------------------------------------------------------- /kirti/assg 3 python.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kirti/assg 3 python.txt -------------------------------------------------------------------------------- /kumar swastik/Assignment_Linux.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kumar swastik/Assignment_Linux.docx -------------------------------------------------------------------------------- /kumar swastik/Assignment_Linux_Session#3,#4.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kumar swastik/Assignment_Linux_Session#3,#4.docx -------------------------------------------------------------------------------- /kumar swastik/Assignment_Linux_Session#5.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kumar swastik/Assignment_Linux_Session#5.docx -------------------------------------------------------------------------------- /kumar swastik/Assignment_Python #5.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kumar swastik/Assignment_Python #5.docx -------------------------------------------------------------------------------- /kumar swastik/Assignment_Python #6 (1).docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kumar swastik/Assignment_Python #6 (1).docx -------------------------------------------------------------------------------- /kumar swastik/Assignment_Python #6.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kumar swastik/Assignment_Python #6.docx -------------------------------------------------------------------------------- /kumar swastik/Assignment_Python #7.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kumar swastik/Assignment_Python #7.docx -------------------------------------------------------------------------------- /kumar swastik/Assignment_Python_Session#1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kumar swastik/Assignment_Python_Session#1.docx -------------------------------------------------------------------------------- /kumar swastik/Assignment_Python_Session#2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/kumar swastik/Assignment_Python_Session#2.docx -------------------------------------------------------------------------------- /online-python-series/assignment2.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | Ques - 3 + 4 ** 6 - 9 * 10 / 2 4 | Ques - Let say I have, some string "hello this side regex" 5 | 6 | - Find out the count of the total vowels 7 | vowels - ['a','e','i','o','u'] 8 | 9 | 10 | Ques - Find out the area of triangle 11 | 1/2 * b * h 12 | 13 | - You have to take value from user about the base, & the height 14 | 15 | 16 | Ques - Print the calendar on the terminal. If you give the year. 17 | - Allow the user to input the year. 18 | - Then should that calendar of that year 19 | 20 | -------------------------------------------------------------------------------- /online-python-series/ifconditions.py: -------------------------------------------------------------------------------- 1 | 2 | 3 | x = int(input("Please enter a number : ")) 4 | #print("value of x", x) 5 | #print(type(x)) 6 | 7 | 8 | y=10 9 | z=22 10 | 11 | # print I am the superhero if x =12 12 | if(x==14): 13 | print("I am superhero") 14 | elif(y==10): 15 | print("value of y is:", y) 16 | 17 | elif(z==22): 18 | print("printing the value of z:", z) 19 | 20 | else: 21 | print("if condition is wrong") 22 | -------------------------------------------------------------------------------- /regex training/Linux-01.txt: -------------------------------------------------------------------------------- 1 | Linux Assignment-01 2 | Answers 3 | 4 | 5 | 1) When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done ? 6 | Ans.It is done because these files are in the folder /etc/skel and whichever files we place in this folder those files will be 7 | made available in the home directory of all the users which we create afterwards. 8 | For reference following are some commands to create a file in /etc/skel and creating and listing files in /home/user 9 | files 10 | -> cd /etc/root 11 | -> touch TestFile 12 | -> useradd RedhatUser 13 | -> ls /home/RedhatUser 14 | Now you'll find the TestFile document in this folder which is the proof that whichever files we put in the folder 15 | /etc/skel will be available to all the users created after it. 16 | 17 | 18 | 2)Make sub directories inside a parent directory by using single mkdir command. 19 | Ans. mkdir -p A/B/C (-p for parent directoy option). -------------------------------------------------------------------------------- /regex training/Linux-03.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/regex training/Linux-03.txt -------------------------------------------------------------------------------- /regex training/Python-01.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/regex training/Python-01.txt -------------------------------------------------------------------------------- /regex training/Python-03.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/regex training/Python-03.txt -------------------------------------------------------------------------------- /regex training/linux-02.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/regex training/linux-02.txt -------------------------------------------------------------------------------- /regex/Task 1.txt: -------------------------------------------------------------------------------- 1 | Ques1:When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done? 2 | Answer: Hidden files can be seen using: ls -la 3 | 4 | Ques2:Make sub directories inside a parent directory by using single mkdir command. 5 | Answer: sudo mkdir -p A/B/C -------------------------------------------------------------------------------- /repo testing/New Text Document.txt: -------------------------------------------------------------------------------- 1 | hello world -------------------------------------------------------------------------------- /rishita/Task 1.txt: -------------------------------------------------------------------------------- 1 | Ques1:When we create a user, some hidden files are generated in the directory of the same user at that time. How is it done? 2 | Answer: Hidden files can be seen using: ls -la 3 | 4 | Ques2:Make sub directories inside a parent directory by using single mkdir command. 5 | Answer: sudo mkdir -p A/B/C -------------------------------------------------------------------------------- /rishita/Task 5.txt: -------------------------------------------------------------------------------- 1 | Ques: What should be the output of the following? 2 | (3+4**6-9*10/2) 3 | Ans: 4054.0 4 | 5 | Ques: Let say I have, some string "hello this side regex". Find out the count of the total vowels in this string. 6 | Ans: >>>vowels='a,e,i,o,u' 7 | >>>vowels 8 | >>>count=0 9 | >>>string='hello this side regex' 10 | >>>for s in string: 11 | if s in vowels: count=count+1 12 | >>>count 13 | 14 | Ques: Find out the area of triangle. You have to take value from user about the base, and the height. 15 | Ans: >>> b = float(input('Enter base of a triangle: ')) 16 | >>> h = float(input('Enter height of a triangle: ')) 17 | >>> area = (b * h) / 2 18 | >>> print('The area of the triangle is %0.1f' % area) 19 | 20 | Ques: Print the calender on the terminal. If you give the year. 21 | -allow the user to input the year. 22 | -then print that calender of that year. 23 | Ans: import calendar 24 | y = int(input("Input the year : ")) 25 | m = int(input("Input the month : ")) 26 | print(calendar.month(y, m)) -------------------------------------------------------------------------------- /somesh shivnani/for_6quest.txt: -------------------------------------------------------------------------------- 1 | 1 A2 B3 C4 D5 E6 F7 G8 H9 I10 J11 K12 L13 M14 N15 O16 P17 Q18 R19 S20 T21 U22 V23 W24 X25 Y26 Z -------------------------------------------------------------------------------- /somesh shivnani/for_read.txt: -------------------------------------------------------------------------------- 1 | hello.my name is somesh shivnani.i live in jaipur.i am 3rd year student -------------------------------------------------------------------------------- /summer2020/linuxfirst.txt: -------------------------------------------------------------------------------- 1 | 2 | Q1. ls -a cmd -> use for to see the hidden file in linux 3 | mkdir .filename(. use create hidden files) 4 | Q2. mkdir -p a/{a1,a2,b/c/c1} 5 | 6 | Q3. The word tac is reverse of the word cat. 7 | tac command functionality is also reverse of the cat command. 8 | cat command prints the file and tac command prints the file in reverse order with last line first. 9 | 10 | 11 | -------------------------------------------------------------------------------- /summer2020/linuxsecond.txt: -------------------------------------------------------------------------------- 1 | Assignment 2 2 | 3 | Q1. change the umask value for:= 4 | current user:- /.bashrc 5 | other user:- /etc/.bashrc 6 | 7 | Q2. add an entry of user details in:- # vi /etc/passwd 8 | create a group with same name so add a new entry in:- #vi /etc/passwd 9 | assign a password to the user:- # passwd user 10 | login with newely create user:- #su -user 11 | 12 | Q3. NO, because Out of range maximum value is 777. 13 | 14 | Q4. useradd -u 15 | 16 | Q5. chgrp 17 | A. cd 18 | ls -lh 19 | B. chgrp -R -------------------------------------------------------------------------------- /summer2020/linuxthird.txt: -------------------------------------------------------------------------------- 1 | Assignment3 2 | 3 | Q1.yum install bzip2 (create) 4 | bzip2 filename (compress) 5 | bzip2 -z backup.tar(compress tar file) 6 | 7 | Q2. yum install unzip 8 | unzip filename 9 | 10 | Q4. useradd -s /bin/sh 11 | -------------------------------------------------------------------------------- /summer2020/pythonclass1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/summer2020/pythonclass1.txt -------------------------------------------------------------------------------- /summer2020/pythonclass2.txt: -------------------------------------------------------------------------------- 1 | Q1. 4054 2 | 3 | Q2. str1="Hello this side regex" 4 | l=str1.lower() 5 | vc={} 6 | for i in "aeiou": 7 | count=l.count(i) 8 | vc[i]=count 9 | print(vc) 10 | 11 | 12 | Q3. print("Enter the base",end="") 13 | b=float(input()) 14 | print("Enter the height",end="") 15 | h=float(input()) 16 | area=0.5*b*h 17 | print("Area is : ",end="", area) 18 | 19 | Q4. import os 20 | print("Enter the year") 21 | year=int(input()) 22 | print(os.system cal -y year) -------------------------------------------------------------------------------- /summer2020/pythonclass3.txt: -------------------------------------------------------------------------------- 1 | python class 3 2 | 3 | Q1 x, y = input("Enter a two value: ").split() 4 | x=int(x) 5 | y= int(y) 6 | for num in range(x,y,1) : 7 | 8 | sum = 0 9 | 10 | temp = num 11 | while temp > 0: 12 | digit = temp % 10 13 | sum += digit ** 3 14 | temp //= 10 15 | if num == sum: 16 | print(num,"is an Armstrong number") 17 | 18 | Q2 19 | s='hello this world @2020!!! ' 20 | s=list(s) 21 | p=['@','!','#','$','%','&','*','(',')'] 22 | a=[] 23 | for i in s: 24 | if i in p: 25 | continue 26 | else: 27 | a.append(i) 28 | ''.join(str(i) for i in a) 29 | 30 | Q3 31 | o =['Apple', 'banana', 'cat', 'REGEX','apple'] 32 | o.sort() -------------------------------------------------------------------------------- /vanshika garg/regex task 1.txt: -------------------------------------------------------------------------------- 1 | ques:- If we use useradd user_name command than user_name folder will not be made on home directory. why ? 2 | ans:- useradd is native binary compiled with the system.But, adduser is a perl script which uses useradd binary in back-end. 3 | adduser is more user friendly and interactive than it's back-end useradd. no such difference in features. 4 | useradd commands are low level utilities which are there for historical reasons .useradd will not create a home directory 5 | for such a user, regardless of the default settings in /etc/login.defs (CREATE_MODE). 6 | You have to specify the -m options if you want a home directory for a system account to be created. 7 | For creating a system user without a home directory then use useradd --system -m. 8 | 9 | -------------------------------------------------------------------------------- /vanshika garg/regex task3.txt: -------------------------------------------------------------------------------- 1 | ques:- create a new user and at the same time you have to add thet user into the group you have already created. 2 | ans:-sudo useradd -g group -G garg vanshika 3 | where 4 | vanshika- new user 5 | group- primary group 6 | garg- secondary group 7 | 8 | 9 | ques:-how to change the group of files and the folders with a single command. 10 | ans:-sudo chgrp -R vanshika garg 11 | where 12 | vanshika-folder 13 | garg- file 14 | 15 | 16 | ques:-how to unzip bzip2 files. 17 | ans:-we can't use the tar command because the archive isn't a .tar file. 18 | To uncompress a bzip2 file, use the following command but this won't preserve the original .bz2 file. 19 | bzip2 -d file.xml.bz2 20 | If we want to extract it and keep the original then we should run this command. 21 | bzip2 -dk file.xml.bz2 22 | 23 | 24 | ques:-how to add a user and at the same time change the shell of user to /bin/sh. 25 | ans:-sudo useradd -s /bin/sh username 26 | where 27 | username- new user 28 | /bin/sh- shell 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /vanshika garg/regex task4.txt: -------------------------------------------------------------------------------- 1 | 1. 2 | 3+4**6-9*10/2 3 | 7**6-9*10/2 4 | 1,17,649-9*5 5 | 117,640*5 6 | ‬588200. 7 | 8 | 9 | 10 | 2. 11 | def vowel_count(str): 12 | 13 | count = 0 14 | vowel = set("aeiouAEIOU") 15 | 16 | for alphabet in str: 17 | if alphabet in vowel: 18 | count = count + 1 19 | 20 | print("No. of vowels :", count) 21 | str = "hello this side regex" 22 | vowel_count(str) 23 | 24 | 25 | 26 | 3. 27 | b = int(input("Input the base : ")) 28 | h = int(input("Input the height : ")) 29 | 30 | area = b*h/2 31 | 32 | print("area = ", area) 33 | 34 | 35 | 4. 36 | import calendar 37 | y = int(input("Input the year : ")) 38 | m = int(input("Input the month : ")) 39 | print(calendar.month(y, m)) 40 | 41 | -------------------------------------------------------------------------------- /vanshika garg/vanshikagarg/python assignment 3.txt: -------------------------------------------------------------------------------- 1 | 1. 2 | def findArmstrong(low, high) : 3 | 4 | for i in range(low + 1, high) : 5 | 6 | # number of digits calculation 7 | x = i 8 | n = 0 9 | while (x != 0) : 10 | x = x / 10 11 | n = n + 1 12 | 13 | # compute sum of nth power of 14 | pow_sum = 0 15 | x = i 16 | while (x != 0) : 17 | digit = x % 10 18 | pow_sum = pow_sum + math.pow(digit, n) 19 | x = x / 10 20 | 21 | # checks if number i is equal to 22 | # the sum of nth power of its digits 23 | if (pow_sum == i) : 24 | print(str(i) + " "), 25 | 26 | num1 = 100 27 | num2 = 400 28 | findArmstrong(num1, num2) 29 | print("") 30 | 31 | 2. 32 | def Punctuation(string): 33 | 34 | # punctuation marks 35 | punctuations = '''!()-[]{};:'"\,<>./?@#$%^&*_~''' 36 | 37 | for x in string.lower(): 38 | if x in punctuations: 39 | string = string.replace(x, "") 40 | 41 | # Print string without punctuation 42 | print(string) 43 | 44 | # Driver program 45 | string = "hello this world @2020!!!" 46 | Punctuation(string) 47 | 48 | 3. 49 | # Python program to sort a list of strings 50 | 51 | lst = [“Apple”, “banana”, “cat”, “REGEX”,”apple”] 52 | 53 | # Using sorted() function 54 | for ele in sorted(lst): 55 | print(ele) 56 | 57 | 58 | -------------------------------------------------------------------------------- /vanshika garg/vanshikagarg/python assignment 4.txt: -------------------------------------------------------------------------------- 1 | 1. 2 | how to append in a tuple. 3 | T1=(10,50,20,9,40,25,60,30,1,56) 4 | L1=list(T1) 5 | L1 6 | [10, 50, 20, 9, 40, 25, 60, 30, 1, 56] 7 | L1.append(100) 8 | T1=tuple(L1) 9 | T1 10 | (10, 50, 20, 9, 40, 25, 60, 30, 1, 56, 100) 11 | 12 | 2. 13 | difference between yield and return 14 | yield- yield statement is used when the generator returns an intermediate result to the caller. 15 | return- return statement is used when a function is ready to send a value back to it's caller. -------------------------------------------------------------------------------- /vishakha_rungta/Python Assignment 1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/regexsoftware/REGex-ONLINE-Training-2020/21ae75a98388fde257fd0ec8381a823c75648a63/vishakha_rungta/Python Assignment 1.txt -------------------------------------------------------------------------------- /vishakha_rungta/python Assignment 2.txt: -------------------------------------------------------------------------------- 1 | Ques 1: What should be the output? 2 | (3+4**6-9*10/2) 3 | Ans: first solve exponent:4**6=4096 4 | then according to precidence solve->*,/,+,- (left to right) 5 | 9*10=90/2=45 6 | 3+4096=4099-45=4054 7 | In python->print(3+4**6-9*10/2) 8 | 9 | 10 | Ques 2. Let say I have, some string "hello this side regex" 11 | Find out the count of the total vowels 12 | vowels - ['a','e','i','o','u'] 13 | 14 | Ans. string = "hello this side regex" 15 | temp = [] 16 | for i in range(len(string)): 17 | if string[i]=='a' or string[i]=='e' or string[i]=='i' or string[i]=='o' or string[i]=='u': 18 | if(string[i] not in temp): 19 | temp.append(string[i]) 20 | c = string.lower().count(string[i]) 21 | print(f"{string[i]} : {c} ") 22 | 23 | 24 | Ques 3. Find out the area of triangle 25 | - 1/2 * b * h (formula of area) 26 | - You have to take value from user about the base, & the height 27 | 28 | Ans. b, h = input("Enter the value of base and height of the trianhle space seprated : ").split(" ") 29 | print(f"Area of Triangle : {1/2 * int(b) * int(h)} ") 30 | 31 | 32 | Ques 4: print the calender on the terminal.If you give the year 33 | Ans: 34 | import calendar 35 | y=int(input("enter year=")) 36 | for i in range(1,13): 37 | print(calendar.month(y,i)) 38 | --------------------------------------------------------------------------------