Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Files in python A file has a list containing student regno, name, cat contents of the file and find the total marks by addi another

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Files in python A file has a list containing student regno, name, cat contents of the file and find the total marks by addi another file and store the student regno and total ma A file has a combination of alphabets, numbers and %^&*!. Develop a python script that eliminates all only the valid alphabets and numbers in it. A file contains the marks obtained by both B.Tech their marks obtained in python subject. Create two student details. (Note: Regno of B.Tech and M.Tec identifying the letter 'B' and 'M' respectively in the a a in python has a list containing student regno, name, cat1 and nts of the file and find the total marks by adding cat er file and store the student regno and total marks. has a combination of alphabets, numbers and speci *!. Develop a python script that eliminates all the sp- he valid alphabets and numbers in it. contains the marks obtained by both B.Tech and M marks obtained in python subject. Create two differe nt details. (Note: Regno of B.Tech and M.Tech stud fying the letter 'B' and 'M' respectively in the mido t regno, name, cat1 and cat2 marks. Retrieve the tal marks by adding catl and cat2 marks. Create regno and total marks. bets, numbers and special symbols like + #$ that eliminates all the special symbols and retains bers in it. by both B.Tech and M.Tech students' regnos and bject. Create two different files and separate the 3.Tech and M.Tech students can be retrieved respectively in the middle of the number ) Programs using Set: 1. Write a python program to create two sets, sto a. All the elements b. Common elements c. Elements in set A and not in B d. Elements in set B and not in A 2. Among n number of sets remove the common S1={1,2,3,4} S2={2,3,5} S3={4,5,6} S1&S2&S3 3. Create a set of names and if the user gives a na Duplicate element else add it to the set ms using Set: a python program to create two sets, store in a thir elements on elements nts in set A and not in B nts in set B and not in A g n number of sets remove the common elements -2,3,4} -3,5} -5,6} 2&S3 a set of names and if the user gives a name that i cate element else add it to the set : gram to create two sets, store in a third set and di und not in B nd not in A f sets remove the common elements from all the es and if the user gives a name that is available in else add it to the set regno, name, cat1 and cat2 marks. Retrieve the al marks by adding cat1 and cat2 marks. Create egno and total marks. ets, numbers and special symbols like + # $ at eliminates all the special symbols and retains ers in it. by both B.Tech and M.Tech students' regnos an. ject. Create two different files and separate the Tech and M.Tech students can be retrieved espectively in the middle of the number ) regno, name, cat1 and cat2 marks. Retrieve the tal marks by adding cat1 and cat2 marks. Create regno and total marks. pets, numbers and special symbols like + # $ hat eliminates all the special symbols and retains bers in it. 1 by both B.Tech and M.Tech students' regnos ane bject. Create two different files and separate the .Tech and M.Tech students can be retrieved respectively in the middle of the number ) Programs to work with regular expressions Write a python script to check for the validity of number) Write a python script to check validity of a passp- It should be eight characters long. a n regular expressions check for the validity of aadhar number (it is a 12 o check validity of a passport number racters long. of aadhar number (it is a 12 or 16 digits ssport number 2/2 1. Write a python script to check i number) 2. Write a python script to check It should be eight characters The first character should be an upper case alphabe The next two characters should be a number, but th number from 1-9 and the second character should b t should be zero or one white space character. The next four characters should be any number fron The last character should be any number from 1-9. Write a python script to verify the validity of a regis eg:[17 18 19][MIS BCE BCL BCM BEC BEM BIS ligit number in which the first digit should be a zero Write python script using regex to check for a valid I character should be an upper case alphat- t two characters should be a number, but t from 1-9 and the second character should I be zero or one white space character. t four characters should be any number fr character should be any number from 1-9 python script to verify the validity of a reg 8 19][MIS BCE BCL BCM BEC BEM BI. mber in which the first digit should be a ze thon script using regex to check for a valid eter should be an upper case alphabet. naracters should be a number, but the first cha -9 and the second character should be any nu co or one white space character. haracters should be any number from 0-9. ter should be any number from 1-9. script to verify the validity of a register numbe TIS BCE BCL BCM BEC BEM BIS BCL BM which the first digit should be a zero. Eript using regex to check for a valid email add be an upper case alphabet. hould be a number, but the first character should be second character should be any number from 0-9. -hite space character. hould be any number from 0-9. be any number from 1-9. erify the validity of a register number CL BCM BEC BEM BIS BCL BME ] followed by first digit should be a zero. regex to check for a valid email address a a be an upper case alphabet. ould be a number, but the first character should be econd character should be any number from 0-9. nite space character. hould be any number from 0-9. e any number from 1-9. rify the validity of a register number CL BCM BEC BEM BIS BCL BME ] followed by a irst digit should be a zero. egex to check for a valid email address a n upper case alphabet. be a number, but the first character should be any d character should be any number from 0-9. space character. be any number from 0-9. y number from 1-9. he validity of a register number ECM BEC BEM BIS BCL BME ] followed by a Higit should be a zero. to check for a valid email address a 2/

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions