אממ אני לא יודע אם זה עוזר לך, כי אני לא יודע Python אבל אני מאמין שאת הקוד הזה שכתבתי בדקה אפשר גם לכתוב בPython בקלות..
PHP קוד:
<?php
$word = "This is text"; // The orginial text
$word2 = ""; // The new text
// We use a loop to transform each letter to the next letter
for($i=0;$i<strlen($word);$i++) {
$letternow = $word[$i]; // Select the letter
$letternow++; // Transform the letter to the next one
$word2 .= $letternow; // Add the new letter to $word2
}
echo $word2; // Echo the new text
מקווה שעזרתי :/
בהצלחה