Search Header Logo
Data vV

Data vV

Assessment

Presentation

Computers

8th Grade

Hard

Created by

Muhammad Ibrahim

Used 1+ times

FREE Resource

4 Slides • 0 Questions

1

Data Verification and Validation Techniques

Some text here about the topic of discussion

2

Checking Data Type

string, whole numbers, floating-point numbers

#checking data types

try:

    age = int(input("enter your age:  "))

    print('correct age')

except:

    print('Invalid data type')

Some text here about the topic of discussion

3

Checking Range

#checking range check

age = int(input("enter your age:  "))

if not(age > 4 and age < 102):

    print('Invalid Age')

if age > 100:

    print('you should  have died by now.')

Some text here about the topic of discussion

4

Checking Format

Import re

#checking data format

email = input("Enter your email: ")


if re.match('[A-z0-9_\.]+@[a-z]+\.com', email):    print('email correct')else:    print('email incorrect')

Some text here about the topic of discussion

Data Verification and Validation Techniques

Some text here about the topic of discussion

Show answer

Auto Play

Slide 1 / 4

SLIDE