Skip to content

secedit/Class4-PythonModule-Week7

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Class4-PythonModule-Week7

Question 1:

Write a program that detects the ID number hidden in a text. We know that the format of the ID number is 2 letters, 1 digit, 2 letters, 2 digits, 1 letter, 1 digit (For example: AA4ZA11B1).

Input : AABZA1111AEGTV5YH678MK4FM53B6

Output : MK4FM53B6

Input : AEGTV5VZ4PF94B6YH678

Output : VZ4PF94B6

Question 2:

Find words that are 8 letter long on this text ;

Without, the night was cold and wet, but in the small parlour of Laburnum villa the blinds were drawn and the fire burned brightly. Father and son were at chess; the former, who possessed ideas about the game involving radical chances, putting his king into such sharp and unnecessary perils that it even provoked comment from the white-haired old lady knitting placidly by the fire. "Hark at the wind," said Mr. White, "who, having seen a fatal mistake after it was too late, was amiably desirous of preventing his son from seeing it. I'm listening," said the latter grimly surveying the board as he stretched out his hand. "Check." I should hardly think that he's come tonight," said his father, with his hand poised over the board. "Mate," replied the son. "That's the worst of living so far out," balled Mr. White with sudden and unlooked-for violence; "Of all the beastly, slushy, out of the way places to live in, this is the worst. Path's a bog, and the road's a torrent. I don't know what people are thinking about. I suppose because only two houses in the road are let, they think it doesn't matter."

Question 3:

Write a program that list according to email addresses without email domains in a text.

Example:

Input:

The advencements in biomarine studies [email protected] with the investments necessary and Davos [email protected]. Then New Yorker article on wind farms...

Output :

franky

sinatra123

Optional Questions :

  1. Matching Anything But a Newline
  2. Matching Specific String
  3. Matching Digits & Non-Digit Characters
  4. Matching Whitespace & Non-Whitespace Character
  5. Matching Word & Non-Word Character
  6. Matching Start & End
  7. Matching Specific Characters
  8. Excluding Specific Characters

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published