benchmarks.wiki / Public workspace

MBPP / 165 / Write a function to count the number of characters in a string that occur at the…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

prompt

Write a function to count the number of characters in a string that occur at the same position in the string as in the English alphabet (case insensitive).

test list

  • assert count_char_position("xbcefg") == 2
  • assert count_char_position("ABcED") == 3
  • assert count_char_position("AbgdeF") == 5

Discussion

Discussion

No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

Source and history

Official source

initial import