Cody

# Problem 409. Back to basics 19 - character types

Solution 110636

Submitted on 11 Jul 2012 by James
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
%% x = 'This is cool!'; y_correct = 1; assert(isequal(punctuation(x),y_correct))

y = 1

2   Pass
%% x = '!?! Are you kidding !?!'; y_correct = 6; assert(isequal(punctuation(x),y_correct))

y = 6

3   Pass
%% x = 'Nope....'; y_correct = 4; assert(isequal(punctuation(x),y_correct))

y = 4
{"ft_lang_label":"__label__en","ft_lang_prob":0.50484526,"math_prob":0.99304825,"size":604,"snap":"2019-35-2019-39","text_gpt3_token_len":173,"char_repetition_ratio":0.14333333,"word_repetition_ratio":0.0,"special_character_ratio":0.32781458,"punctuation_ratio":0.1724138,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9778205,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-15T20:06:18Z\",\"WARC-Record-ID\":\"<urn:uuid:71f5f7d9-c38c-40fd-acc8-441d9f5671bc>\",\"Content-Length\":\"72408\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:879dbdcc-3856-48a6-9aa9-883f586ee792>\",\"WARC-Concurrent-To\":\"<urn:uuid:31af5a86-885b-492f-8a1c-5083c261f814>\",\"WARC-IP-Address\":\"104.118.179.86\",\"WARC-Target-URI\":\"https://nl.mathworks.com/matlabcentral/cody/problems/409-back-to-basics-19-character-types/solutions/110636\",\"WARC-Payload-Digest\":\"sha1:HMGGKQFSRUC7V4EIXOUAM3JR7SCXBOLY\",\"WARC-Block-Digest\":\"sha1:NAVTJC5SX5HOFY5SZZGRSM5LOCNA55JA\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514572289.5_warc_CC-MAIN-20190915195146-20190915221146-00375.warc.gz\"}"}