Python 3.4 string_1 = "Camelot" string_2 = "place" print ("Let's not go to %s. 'Tis a silly %s." % (string_1, string_2)) , why is syntax error: invalid syntax?
I ran this in Python it's fine. Maybe Python 3 and later will not like the single quotes inside the doubles and will throw a syntax couple of solutions print (Let's not go to %s. 'Tis a silly %s. %(string_1 string_2)) code nThis should work fine. starts a multi-line string so anything inside it should be treated as part of the string until the next print ('''Let's not go to %s. 'Tis a silly %s.''' %(string_1 string_2)) code nSame deal. These are three single quotes print (Let's not go to %s. 'Tis a silly %s. %(string_1 string_2)) code nUsing the as an escape tells Python it should treat the single quotes as characters and not string terminators. This also works with double quotes like thisn print (He said Camelot is a silly place ) code Edit It appears I was wrong and single quotes inside double quotes is fine in later versions of Python as well which means you probably have aome problem with ation or whitespaces.
Who is Arthur? I notice Prince William also has Arthur as part of his name.
Do you mean why do British princes have Arthur as one of their given names? Well because it it Arthur italic . King italic Arthur. Arthur Pendragon Rex Quondam Rexque Futurus. Excalibur? Knights of the Round Table? Camelot? The Matter of Britain? The Sword in the Stone? Monty Python and the Holy Grail? italic That italic Arthur.
What Python library should I use to OCR tables from documents?
A general OCR solution is indeed pytesseract like Shay Shwarz user 539726299 said. If the documents are in PDF format you can use socialcopsdev s described here Announcing Camelot a Python Library to Extract Tabular Data from PDFs - SocialCops s
What parts of Monty Python and the Holy Grail, if any, were historically accurate?
I think you can safely say that it is one of the least historically accurate movies ever made. Some aspects like plague flagellants the helmets and armour of the Frenchmen or a knight trying to show he worthy by fighting people to cross a bridge can be said to be accurate in a manner of speaking but here the thing if there ever was a King Arthur or the Dux Bellorum mentioned in some chronicles he must have lived in the 5th or 6th century give or take. Anything in the Monty Python movie that has some basis in history is from the time when the Arthur legends were at their most popular which was around the 13th and 14th century. It is like saying that a movie about Robin Hood is historically accurate because when Richard Lionheart arrives towards the end his helicopter is a faithful replica of the ones used in the Vietnam war even though the Merry Men shouldn have been equipped with Uzis but rather with Kalashnikovs.. To my knowledge there is exactly one Arthurian movie which can be said to have some historical foundation and it should be noted that it is still 1% made up and full of inaccuracies. It King Arthur italic with Clive Owen as Arthur. What they have done there is to take a somewhat likely time period imagine a series of events that might have formed the kernel of the later Arthurian legends and dream up apletely fictional story that would look good on the big screen. If youre interested the historical kernel is this at some point about the Battle of Badon Hill Saxon expansion in Britain was halted for several decades before continuing. It looks very much like someone managed to forge an alliance between the local tribes and beat the Saxonsprehensively. Given the era it is likely that this person had got tactical and strategical knowledge from Roman military training. The Monty Pythons just wrote a few sketches with a vaguely Medieval theme joined them together by saying Arthur and got hold of some second-hand props from Ivanhoe italic . (The 1954 version although given the anachronisms already in the script Ill happily settle for the 1982 version.)
What books should I read to learn about Arthurian legends?
If youre old enough the movie Excalibur. Geoffrey of Monmouth Historia Regum Britanniae. That in Latin but it worth learning Latin just for the Arthurian tales and the histories behind them. Or Wace Roman de Brut (in Gallo aka Old French you can go to eastern Brittany to learn that language). Perhaps the movie King Arthur (based loosely on one modern interpretation.) If you want to understand the legends historic background then study just for starters Riothamus Ambrosius Aurelianus Gildas Y Gododdin The Mabinogion Count Alan Rufus Duke Arthur III of Brittany
Can I write a story in the city of Camelot that's not about King Arthur or Arthurian Legend?
I don see why not but then again I don see why you should either here why There lots of speculation but no one knows what ancient castle or ruin is actually Camelot so it could be any of them. Taking that into account if you remove king Authur and the knights of the round table and merlin etc you have a generic castle named Camelot where nothing happened. Ive read a lot of Arthur tales but not once do I remember Camelot being attacked so life in Camelot could be quite boring? If the story isn going to revolve around (or is based around) Arthur and the group there no reason to use Camelot. I can remember if it was a book or a film but somewhere an Arthur said Camelot isn a place it an ideal. Without the people to drive the ideal Camelot is just a castle If I might suggest borrow the ideal and spirit of what you consider Camelot and slap on a different name. That way your readers won have their own preconceptions and you can do what you want blow up a well with gunpowder have a sea monster in a giant underground lake below the city worshiped by the city mayor. Have the market being run by a guild of thieves All these things probably couldn happen in Camelot because of people built up image of Camelot (not saying it can just saying you have people fighting their preconceptions against your story). Unless of course you want the preconceptions of Camelot then use that to not have to write a ton of background like Camelot 1 years after the death of King Arthur something like that?