Import code from other languages to Wolfram Language
Chat Example
CodeImport
a>>b>>c
BitShiftRight[BitShiftRight[a, b], c]
CodeImport
Haskell
a>>b>>c
a; b; c
CodeImport
C++
a>>b>>c
BitShiftRight[a, b] >> c
# define punctuation punctuations = '''!()-[]{};:'"\,<>./?@#$%^&*_~''' my_str = "Hello!!!, he said ---and went." # To take input from the user # my_str = input("Enter a string: ") # remove punctuation from the string no_punct = "" for char in my_str: if char not in punctuations: no_punct = no_punct + char # display the unpunctuated string print(no_punct)
CodeImport
punctuations = StringJoin["!()-[]{};:'\"\\,<>./?@#$%^&*_~"]; myStr = "Hello!!!, he said ---and went."; StringReplace[myStr, Characters[punctuations] -> ""]