---
# System prepended metadata

title: Python

---

# Python

```python=
#bit wise operators - <<,>>,&,|,

dd,mm,yyyy=6,9,2022
mVar, YVar = mm,yyyy

if mVar<=2:
    mVar+=10
    YVar-=1
else:
    mVar-=2
    
yy=YVar%100
cc=YVar//100

w = int(dd+((2.6*mVar)-0.2)+yy+yy//4+cc//4-2*cc)%7

print(f"Weekday: {w}");

print('Su Mo Tu We Th Fr Sa')
for sp in range(w):
    print('  ', end='')
    
for n in range(1,31):
    print(f'{n:<3}', end='')
    
    if(n+w)%7==0:
        print()
```
        
