CAS Community   >   Resources   >  

Iheartpython-unicode
Python program which prints out I {shape of a heart} python

Python program that will print out "I {shape of hearth} python, with shape's border a star by default but could be any character entered as an argument

Mustapha Khoudi

Created by Mustapha Khoudi
last edited Jul 05 2021 by Mustapha Khoudi



Python program that will print out I love python with the word love as a shape of a heart

how does it work?

The program is run as follows:

    python3 IHeartpython.py "unicode emoji character"   - for example "/U0001F606" Emoji list provided below

The default border is ‘shape of heart’ when argument not given to the program

    python3 IHeartPython.py  then the heart shape will be made of hearts. other shapes have to supplied as argument as explained above

Learners programming this will gain skills in python data structure, namely 2 dimensional lists (rows and columns), as well as writing functions with default value parameters which can be changed at the moment they are called in the program

Examples

emoji lists unicode points

Alt IheartPython.png (also, uploaded)

Hope this helps!

Downloaded 323 times.

Download

This resource has attached files: to access these files, please tick the box below to assent to the license terms
License: The resources on CAS website are under Creative Commons Attribution-Share Alike 3.0 licence unless otherwise specified by the resource creators.

You must confirm that you have read and agree the licence's ToS before you can download the attachments of this resource.

I have read the licence agreement of this resource and agree to abide by its terms and conditions.

Feedback and Comments


Available when logged in (join via the front page, for free):
  • View 1 comments on this resource.
  • View resource history, links to related resources.
  • Leave feedback for the author(s), or help by editing the resource.
Categories:


© 2021 BCS, The Chartered Institute for IT Registered charity: No. 292786
Using the websiteDisclaimer of liabilityCookies policyPrivacy notice