DEV Community

Discussion on: DATA STRUCTURES AND ALGORIYHMS WITH PYTHON

Collapse
 
sarveshprajapati profile image
Sarvesh Prajapati

try to add code literals, that would look better rather than plain white texts..

my_list=[] #create an empty list
my_list=[1,3,4, 'example ',3.142]
print(my_list) #prints (1,3,4, 'example' , 3.142)
Enter fullscreen mode Exit fullscreen mode
Collapse
 
mainashem profile image
SHEM MAINA

is there a way to do that? because I was writing the code in pycharm and copying it from there

Collapse
 
sarveshprajapati profile image
Sarvesh Prajapati

yeah you can add triple string literal

Collapse
 
wanguiwaweru profile image
Bernice Waweru • Edited

Hey. Add "python" after the backticks on the codeblock

Thread Thread
 
sarveshprajapati profile image
Sarvesh Prajapati

yup