diff --git a/database_complete.py b/database/database_complete.py similarity index 100% rename from database_complete.py rename to database/database_complete.py diff --git a/delete_record.py b/database/delete_record.py similarity index 100% rename from delete_record.py rename to database/delete_record.py diff --git a/insert_row.py b/database/insert_row.py similarity index 100% rename from insert_row.py rename to database/insert_row.py diff --git a/mysql_connection.py b/database/mysql_connection.py similarity index 100% rename from mysql_connection.py rename to database/mysql_connection.py diff --git a/select_command.py b/database/select_command.py similarity index 100% rename from select_command.py rename to database/select_command.py diff --git a/multiple_assignment.py b/multiple_assignment.py new file mode 100644 index 0000000..3c6dab4 --- /dev/null +++ b/multiple_assignment.py @@ -0,0 +1,2 @@ +a,b,c = 10,20,30 +print("\n Multiple assignment operator \n a = {} \n B = {} \n c= {}".format(a,b,c)) \ No newline at end of file diff --git a/regular/digit.py b/regular/digit.py new file mode 100644 index 0000000..e1fe54f --- /dev/null +++ b/regular/digit.py @@ -0,0 +1,4 @@ +import re +phoneNumRegex = re.compile(r'\d\d\d-\d\d\d-\d\d\d\d') +mo = phoneNumRegex.search('My number is 415-555-4242.') +print('Phone number found: ' + mo.group()) \ No newline at end of file