cleaner version of variable, new line

asa32sd23 at gmail.com asa32sd23 at gmail.com
Thu May 24 22:07:04 EDT 2018


On Thursday, May 24, 2018 at 8:51:07 PM UTC-4, asa3... at gmail.com wrote:
> hi just seeing if there is a cleaner way to write this. 
>  
> s1= "kitti"
> s2= 'kitti'
> i= 3
> print(s1+ "\n" + "="*i + "^" + "\n" +s2)
> 
> > 
> kitti
> ===^
> kitti

more legible that way... thks



More information about the Python-list mailing list