def is_version_of_draft_valid(exp_id, version):
 return (get_exploration_by_id(exp_id).version == version)

def is_version_of_draft_valid ( exp_id , version ) : return ( get_exploration_by_id ( exp_id ) . version == version )
checks if the draft version is the same as the latest version of the exploration .