So I saw a screencast on youtube were this guy was using something called metasploit. And every time that program was loading, a welcome screen was presented. Every char was capitalized like a wave running from left to right, like a marquee function.
And as a python noob I thought that would be pretty simple to recreate :) but boi was I wrong!
This is what I´v got:
import time
import os
string = "this is a test"
count = 0
kuk = list(string)
for i in range(len(string)):
os.system('clear')
if i == count:
string[i].upper()
print(string)
count += 1
time.sleep(0.3)
The problem seems that I don't know how to iterate the kuk
variable, and print the list like a string (if that makes sense) and at the same time manipulate the char to upper()
on each iteration.
The expected result should be:
First iteration: This is a test
Second: tHis is a test
third: thIs is a test
fourth: thiS is a test
....