Löst: få frågetecken från ett ord %2B python

Senaste uppdateringen: 09/11/2023

Problemet är att frågetecknet inte är ett giltigt tecken i Python.

In Python, the % operator can be used to get the remainder of a division operation. For example, if you divide 7 by 3, the remainder is 1. So 7 % 3 is 1.

If you have a string that contains a question mark (?), you can use the % operator to get the question mark out of the string. For example, "abc?def" % 2 is "def".

avgöra om ett ord innehåller frågetecken

I Python används frågetecknet (?) för att indikera att ett ord är en fråga.

Vad är frågetecken

Frågetecknet (?) är ett tecken som används i många programmeringsspråk för att indikera en fråga.

Relaterade inlägg: